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.
17 lines
268 B
C
17 lines
268 B
C
20 years ago
|
#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 char*)))
|
||
|
if (buffer_puts(b,s)==-1) {
|
||
|
r=-1;
|
||
|
break;
|
||
|
}
|
||
|
va_end(a);
|
||
|
return r;
|
||
|
}
|