libowfat/buffer/buffer_putflush.c

8 lines
169 B
C
Raw Normal View History

2001-02-04 01:28:45 +00:00
#include "buffer.h"
2006-11-07 17:56:05 +00:00
int buffer_putflush(buffer* b,const char* x,size_t len) {
2001-02-04 01:28:45 +00:00
if (buffer_put(b,x,len)<0) return -1;
if (buffer_flush(b)<0) return -1;
return 0;
}