summary refs log tree commit diff
path: root/src/libstddjb/tain_ulong.c
blob: b9b885dde8cafaec4d4529ae04bf973d61d895a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <skalibs/tai.h>

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