how to check no. of spaces were skipped?



i use sscanf()to get the words in a line, it will skip all the space automatically, if i want to know how many spaces were skipped and get the words in a line, what can i do?
thanks!
.