]> diplodocus.org Git - nmh/blob - docs/historical/2.9BSD/subs/cputc.c
Replace GNUism with standard touch flag in test-scan-file.
[nmh] / docs / historical / 2.9BSD / subs / cputc.c
1 #include <stdio.h>
2
3 cputc(chr, ip)
4 register FILE *ip;
5 {
6 if(ip != NULL) {
7 putc(chr, ip);
8 if(ferror(ip)) {
9 perror("Write error");
10 done(-1);
11 }
12 }
13 }