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.
16 lines
331 B
C
16 lines
331 B
C
20 years ago
|
#include <stdarg.h>
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/uio.h>
|
||
|
#include "errmsg.h"
|
||
|
#include "str.h"
|
||
|
|
||
|
extern int errmsg_cvt(struct iovec* x,const char* message, va_list a);
|
||
|
|
||
|
void errmsg_info(const char* message, ...) {
|
||
|
struct iovec x[23];
|
||
|
va_list a;
|
||
|
va_start(a,message);
|
||
|
writev(1,x,errmsg_cvt(x,message,a));
|
||
|
va_end(a);
|
||
|
}
|