View Single Post
Old 01-10-2012, 03:10 PM   #46
JustForFun
Enthusiast
JustForFun has learned how to read e-booksJustForFun has learned how to read e-booksJustForFun has learned how to read e-booksJustForFun has learned how to read e-booksJustForFun has learned how to read e-booksJustForFun has learned how to read e-booksJustForFun has learned how to read e-books
 
Posts: 30
Karma: 752
Join Date: Nov 2010
Device: PB360
Take a look at this question on stackoverflow. Using isspace() also removes the newline at the end of the line which fgets() leaves there if the line is shorter than the supplied buffer.
JustForFun is offline   Reply With Quote