Is there a way to know when fscanf reads a whitespace or a new line?
Posted
by
user1493813
on Stack Overflow
See other posts from Stack Overflow
or by user1493813
Published on 2012-09-25T03:12:41Z
Indexed on
2012/09/25
3:37 UTC
Read the original article
Hit count: 197
I want to know if there is a way to know when fscanf reads a whitespace or a new line.
Example: formatting asking words italic links returns
As fscanf read a string till it meets a newline or a whitespace(using %s), it'll read formatting and the space after it and before a. The thing is, is there a way to know that it read a space? And after it entered the second line is there is a way to know that it read a carriage return?
© Stack Overflow or respective owner