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

#include <skalibs/tai.h>

int tain_ulong (tain_t *t, unsigned long s)
{
  if (!tai_u64(&t->sec, s)) return 0 ;
  t->nano = 0 ;
  return 1 ;
}