You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
312 B
C

#include "stralloc.h"
#include "buffer.h"
static ssize_t dummyreadwrite(int fd,char* buf,size_t len) {
(void)fd;
(void)buf;
(void)len;
return 0;
}
void buffer_frombuf(buffer* b,const char* x,size_t l) {
b->x=(char*)x;
b->p=0;
b->n=l;
b->a=l;
b->fd=0;
b->op=dummyreadwrite;
b->deinit=0;
}