skalibs

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

sig_number.c (258B)


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