ust/localerr.h: fix copy-paste error
[ust.git] / share / usterr.c
CommitLineData
aca1ad90
PMF
1#include <stdarg.h>
2#include <unistd.h>
3
4int safe_printf(const char *fmt, ...)
5{
6 static char buf[500];
7 va_list ap;
8 int n;
9
10 va_start(ap, fmt);
11
12 n = vsnprintf(buf, sizeof(buf), fmt, ap);
13
14 write(STDOUT_FILENO, buf, n);
15
16 va_end(ap);
17}
18
This page took 0.033895 seconds and 4 git commands to generate.