eris/buffer_putflush.c

8 lines
175 B
C
Raw Normal View History

2011-08-16 14:36:11 -06:00
#include "buffer.h"
int buffer_putflush(buffer* b,const char* x,unsigned int len) {
if (buffer_put(b,x,len)<0) return -1;
if (buffer_flush(b)<0) return -1;
return 0;
}