Using C strings is there such a way as to insert a string into another one at a specified index? So far I have it working successfully by
However, three lines seems a bit too much and I do have quite a bit of commands to add. I was wondering if there was a way to modify so the Channel string goes into the string "PRIVMSG X :This is some sample output\r\n" at X index instead of breaking this up into three seperate strings and concatenating them together. Thanks.
strcpy(CommandBuffer, "PRIVMSG ");
strcat(CommandBuffer, " :This is some sample output\r\n");