]> diplodocus.org Git - nmh/blob - docs/historical/SRI-NOSC/subs.dir/getchar.c
expect this commit to be force-replaced periodically
[nmh] / docs / historical / SRI-NOSC / subs.dir / getchar.c
1 getchar()
2 {
3 int c;
4
5 c = 0;
6 if(read(0, &c, 1) != 1)
7 return(0);
8 return(c);
9 }