skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

tain_from_sysclock.c (189B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/tai.h>
      4 
      5 int tain_from_sysclock (tain *a, tain const *u)
      6 {
      7   if (!tai_from_sysclock(&a->sec, u->sec.x)) return 0 ;
      8   a->nano = u->nano ;
      9   return 1 ;
     10 }