Something
public text v1 · immutable
#include <stdio.h>
#define IN 1 /* Inside a word */
#define OUT 0 /* Outside a word */
main()
{
char c;
int state;
state = OUT;
while ((c = getchar()) !=EOF) {
if (c == '\n' || c == '\t' || c == ' ')
state = OUT;
else if (state == OUT) {
state = IN;
printf("%c\n", c);
}
}
return 0;
}