int get_word(char *p)
{
int i, ch;

for(i=0; !is_non_word(ch=getchar()); i++) p[i] = ch;
p[i] = '\0';

return i;
}