How can i append a char pointer to a string?
"abc"
tempString now = abc"
tempString now = abc"bc"
tempString now = abc"bc"c"
Code:char tempString[80];
char *c;
for (c = str_token; *c != '\0'; c++){
if(*c == '"'){
if(!append){
append = 1;
}else{
append = 0;
}
}
if(append && *c != '"'){
strcat(tempString, c);
}
}