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.
libowfat/buffer/buffer_putm_internal_flush.c

18 lines
293 B
C

#include <stdarg.h>
#include "buffer.h"
int buffer_putm_internal_flush(buffer* b, ...) {
int r=0;
va_list a;
const char* s;
va_start(a,b);
while ((s=va_arg(a,const char*)))
if (buffer_puts(b,s)==-1) {
r=-1;
break;
}
va_end(a);
buffer_flush(b);
return r;
}