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.
 
 
 
 

20 lines
422 B

#include <stdarg.h>
#include "errmsg.h"
#include "errmsg_int.h"
void errmsg_write(int fd,const char* err,const char* message,va_list list) {
errmsg_start(fd);
errmsg_puts(fd,message);
for (;;) {
const char* s=va_arg(list,const char*);
if (!s) break;
errmsg_puts(fd,s);
}
va_end(list);
if (err) {
errmsg_puts(fd,": ");
errmsg_puts(fd,err);
}
errmsg_puts(fd,"\n");
errmsg_flush(fd);
}