buffer_0.c (337B)
1 /* Public domain. */ 2 3 #include "buffer.h" 4 5 int buffer_0_read(fd,buf,len) int fd; char *buf; int len; 6 { 7 if (buffer_flush(buffer_1) == -1) return -1; 8 return buffer_unixread(fd,buf,len); 9 } 10 11 char buffer_0_space[BUFFER_INSIZE]; 12 static buffer it = BUFFER_INIT(buffer_0_read,0,buffer_0_space,sizeof buffer_0_space); 13 buffer *buffer_0 = ⁢