libowfat/buffer/buffer_putflush.c
leitner 5eb1cdf888 cleanups in stralloc and buffer:
int -> long for sizes
    char -> unsigned char for strings
2004-11-25 21:29:35 +00:00

8 lines
189 B
C

#include "buffer.h"
int buffer_putflush(buffer* b,const unsigned char* x,unsigned long int len) {
if (buffer_put(b,x,len)<0) return -1;
if (buffer_flush(b)<0) return -1;
return 0;
}