say i have a loop i want to add the first value "this" by the command
strcat(l->value,l->db.param_value.val);
now i want to append a null and move it one more space to the right so i can have
"this"'\0'"is"'\0'
if i do strcat continuously in a loop it just gives me "thisis", anyone have a suggestion on how to do this ?
Ive tried the statement below it didn't work
l->value= l->value[1 + strlen(l->db.param_value.val)];
Thank you!
l->valuean array or a pointer to a buffer? Do you wantl->valueto track the location where the next string will/should be placed? Do you have something else keeping track of the start of the buffer, or shouldl->valuebe left alone and a different temporary pointer keep track of where the next string should go? And do you have something that indicates how big the target buffer is (so you can detect and avoid overflowing it)?