How do I remove leading spaces from strings? My code
for(j=0; command[j]==' ';j++);
only seems to ignore them, when I printout the strings the spaces are still there.
Type: Posts; User: ylph02
How do I remove leading spaces from strings? My code
for(j=0; command[j]==' ';j++);
only seems to ignore them, when I printout the strings the spaces are still there.
Fgets should read in sentences right? In my code I used
if((fgets(sentence))==NULL);
return NULL;
but when I want to print the sentece out it comes out as word by word, each on a newline. How do...
How do I continue reading in input even if it encounters a space? Is it possible to get several sentences, save it in a linked list , then output it? In my program everytime a space is encountered,...