mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
11 lines
167 B
C
11 lines
167 B
C
#include "buffer.h"
|
|
|
|
void buffer_init(buffer *s,int (*op)(),int fd,char *buf,unsigned int len)
|
|
{
|
|
s->x = buf;
|
|
s->fd = fd;
|
|
s->op = op;
|
|
s->p = 0;
|
|
s->n = len;
|
|
}
|