okay, i have another quick question.. I'm making a word count program too and it isn't giving me the output for some reason.. i've been up for like 35 hours so it is astonishingly hard to read code right now.. but again thanks in advance

Code:
// the following code counts the number of words

#include <stdio.h>
#include <ctype.h>

int found_next_word(void);

int main (void)

{
 int word_count=0;

 while(found_next_word()==1)
    ++word_count;
 printf("Number of words = %d\n\n", word_count);

return 0;
}

int found_next_word(void)
{
 int c;

 while (isspace(c = getchar()))
    ;                               /*skip white space*/
 if (c != EOF) {                    /*found a word*/
    while ((c = getchar()) != EOF && !isspace(c))
        ;                           /*skip all but EOF and white space*/
    return 1;
}
return 0;
}