mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
13 lines
327 B
C
13 lines
327 B
C
#include "readwrite.h"
|
|
#include "buffer.h"
|
|
|
|
int buffer_0_read(fd,buf,len) int fd; char *buf; int len;
|
|
{
|
|
if (buffer_flush(buffer_1) == -1) return -1;
|
|
return read(fd,buf,len);
|
|
}
|
|
|
|
char buffer_0_space[BUFFER_INSIZE];
|
|
static buffer it = BUFFER_INIT(buffer_0_read,0,buffer_0_space,sizeof buffer_0_space);
|
|
buffer *buffer_0 = ⁢
|