summaryrefslogtreecommitdiff
path: root/src/libstddjb/strerr_warnl.c
blob: 17c370de4c7bef1d3cc583ee60cef6d4e80248fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ISC license. */

/* MT-unsafe */

#include <stdarg.h>

#include <skalibs/strerr.h>

void strerr_warnl (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) ;
  }
}