some file help

hey i wanted to ask how can i calculate how many characters there is in the first word of a sentence, which is read from a file
something like:
1
2
3
4
while(word[i]!=' ')
{
      i++
}

word being a char array
Last edited on
 
while(!isspace(word[i++]))
i is the length of the 1st word;
remember to include ctype.h
Last edited on
Topic archived. No new replies allowed.