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

#include <sys/types.h>
#include <skalibs/sig.h>

size_t sig0_scan (char const *s, int *sig)
{
  int t ;
  size_t len = sig_scan(s, &t) ;
  if (!len || s[len]) return 0 ;
  *sig = t ;
  return len ;
}