I've got a string declared like this:
str=malloc(sizeof(char)*128);
I want to clear it completely so that whenI do strncat()
operation, the new characters will be written to the beginning of str
. The reason I need to clear it is that I'm writing over it with a simplified version of itself (deleting excess whitespace).