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.c

17 lines
277 B
C

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