Debian Codegraph @

utils/pmx/pmx-src/w32getc.c

raw
1 #include <stdio.h>
2 int w32getc(FILE *f)
3 {
4 int c;
5 c = getc(f);
6 if(c=='\r') {
7 c = getc(f);
8 if(c!='\n') {
9 ungetc(c,f);
10 c='\r';
11 }
12 }
13 return c;
14 }