I am trying to take an array of arguments from char **argv and combine them in one string.
I keep receiving the following error: error C2664: 'strcat' : cannot convert parameter 1 from 'char' to 'char *'
Attached is the code I am using.
Anyone know of a way I can accomplish the above?
int main(int argc, char **argv)
char *sendbuf = "";
for(int i = 1; i < argc; i++)
if((i > 3) && (i < argc))
strcat(*sendbuf, argv[i]); //Line with error
printf("Argument: %s\n", argv[i]);