skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

strerr_warnv.c (331B)


      1 /* ISC license. */
      2 
      3 /* MT-unsafe */
      4 
      5 #include <errno.h>
      6 
      7 #include <skalibs/buffer.h>
      8 #include <skalibs/strerr.h>
      9 
     10 void strerr_warnv (char const *const *v, unsigned int n)
     11 {
     12   int e = errno ;
     13   for (unsigned int i = 0 ; i < n ; i++)
     14     if (v[i]) buffer_puts(buffer_2, v[i]) ;
     15   buffer_putflush(buffer_2, "\n", 1) ;
     16   errno = e ;
     17 }