blob: d142402af3ebe8e4d46aeef72f340eb89e179866 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* ISC license. */
/* MT-unsafe */
#include <stdarg.h>
#include <unistd.h>
#include <skalibs/strerr.h>
void strerr_diel (int e, unsigned int n, ...)
{
if (n)
{
va_list ap ;
char const *v[n] ;
va_start(ap, n) ;
va_arg(ap, unsigned int) ;
for (unsigned int i = 0 ; i < n ; i++)
v[i++] = va_arg(ap, char const *) ;
va_end(ap) ;
strerr_warnv(v, n) ;
}
_exit(e) ;
}
|