Hi,
I have three 'const char*' variables i would like to put into one long const char*.
The problem is just that i am simply unable to do so. No sprintf or similar solution worked for me - could someone put my nose into the right direction?
Finally found a solution - why didnt anyone tell me C Libraries could be included? 0o
#include <stdio.h>
#include <string.h>
(...)
char cmd2[80];
strcpy(cmd2, "<<<");
strcat(cmd2, cmd);
strcat(cmd2, ">>>");
Keep in mind that your result isn't actually "one long const char*" though.
--Phil.