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

#include <sys/types.h>
#include <skalibs/fmtscan.h>
#include <skalibs/tai.h>

size_t tain_scan (char const *s, tain_t *a)
{
  char pack[TAIN_PACK] ;
  size_t r = ucharn_scan(s, pack, TAIN_PACK) ;
  if (r) tain_unpack(pack, a) ;
  return r ;
}