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

#include <skalibs/tai.h>

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