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 I correct this?
Thanks....in advance
This is a discussion on fgets within the C Programming forums, part of the General Programming Boards category; Fgets should read in sentences right? In my code I used if((fgets(sentence))==NULL); return NULL; but when I want to print ...
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 I correct this?
Thanks....in advance
The world is waiting. I must leave you now.