skalibs

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

sig_name.c (243B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/sig.h>
      4 #include "sig-internal.h"
      5 
      6 char const *sig_name (int sig)
      7 {
      8   sigtable const *p = skalibs_sigtable ;
      9   for (; p->number ; p++) if (sig == p->number) break ;
     10   return p->number ? p->name : "???" ;
     11 }