ust: change communication socket for STREAM
[ust.git] / share / usterr.c
1 #include <stdarg.h>
2 #include <unistd.h>
3
4 int 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.028724 seconds and 4 git commands to generate.