Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not 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

  1. #include <stdarg.h>
  2. #include "buffer.h"
  3. int buffer_putm_internal(buffer* b, ...) {
  4. int r=0;
  5. va_list a;
  6. const char* s;
  7. va_start(a,b);
  8. while ((s=va_arg(a,const char*)))
  9. if (buffer_puts(b,s)==-1) {
  10. r=-1;
  11. break;
  12. }
  13. va_end(a);
  14. return r;
  15. }