1: #define UCB_LINEBUF
   2: 
   3: #define BUFSIZ  512
   4: #define _NFILE  20
   5: #ifndef FILE
   6: extern  struct  _iobuf {
   7:     char    *_ptr;
   8:     int _cnt;
   9:     char    *_base;
  10: #ifdef  UCB_LINEBUF
  11:     short   _flag;
  12: #else
  13:     char    _flag;
  14: #endif
  15:     char    _file;
  16: } _iob[_NFILE];
  17: # endif
  18: 
  19: #define _IOREAD 01
  20: #define _IOWRT  02
  21: #define _IONBF  04
  22: #define _IOMYBUF    010
  23: #define _IOEOF  020
  24: #define _IOERR  040
  25: #define _IOSTRG 0100
  26: #define _IORW   0200
  27: #ifdef  UCB_LINEBUF
  28: #define _IOLBF  0400
  29: #endif	UCB_LINEBUF
  30: 
  31: #define NULL    0
  32: #define FILE    struct _iobuf
  33: #define EOF (-1)
  34: 
  35: #define stdin   (&_iob[0])
  36: #define stdout  (&_iob[1])
  37: #define stderr  (&_iob[2])
  38: #define getc(p)     (--(p)->_cnt>=0? *(p)->_ptr++&0377:_filbuf(p))
  39: #define getchar()   getc(stdin)
  40: #define putc(x,p) (--(p)->_cnt>=0? ((int)(*(p)->_ptr++=(unsigned)(x))):_flsbuf((unsigned)(x),p))
  41: #define putchar(x)  putc(x,stdout)
  42: #define feof(p)     (((p)->_flag&_IOEOF)!=0)
  43: #define ferror(p)   (((p)->_flag&_IOERR)!=0)
  44: #define fileno(p)   ((p)->_file)
  45: 
  46: FILE    *fopen();
  47: FILE    *fdopen();
  48: FILE    *freopen();
  49: long    ftell();
  50: char    *fgets();

Defined struct's

Defined macros

BUFSIZ defined in line 3; used 454 times
EOF defined in line 33; used 473 times
FILE defined in line 32; used 801 times
NULL defined in line 31; used 2530 times
UCB_LINEBUF defined in line 1; used 14 times
_IOMYBUF defined in line 22; used 10 times
feof defined in line 42; used 55 times
ferror defined in line 43; used 88 times
fileno defined in line 44; used 124 times
getc defined in line 38; used 303 times
getchar defined in line 39; used 229 times
putc defined in line 40; used 331 times
putchar defined in line 41; used 401 times
stderr defined in line 37; used 1449 times
stdin defined in line 35; used 348 times
stdout defined in line 36; used 574 times

Usage of this include

stdio.h used 507 times
Last modified: 1983-08-28
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1027
Valid CSS Valid XHTML 1.0 Strict