Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
312 B

#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;
}