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

#include <skalibs/tai.h>

unsigned int timestamp_scan (char const *s, tain_t *a)
{
  register unsigned int r ;
  if (*s != '@') return 0 ;
  r = tain_scan(s+1, a) ;
  return r ? r+1 : 0 ;
}