summaryrefslogtreecommitdiff
path: root/src/libstddjb/sig_number.c
blob: a588abd643859ef8420a356400463942377044ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* ISC license. */

#include <strings.h>
#include <skalibs/sig.h>
#include "sig-internal.h"

int sig_number (char const *name)
{
  sigtable_t const *p = skalibs_sigtable ;
  for (; p->name ; p++) if (!strcasecmp(name, p->name)) break ;
  return p->number ;
}