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

#include <skalibs/tai.h>

int tain_from_sysclock (tain *a, tain const *u)
{
  if (!tai_from_sysclock(&a->sec, u->sec.x)) return 0 ;
  a->nano = u->nano ;
  return 1 ;
}