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

#include <skalibs/tai.h>

int tain_less (tain_t const *t, tain_t const *u)
{
  if (tai_sec(&t->sec) < tai_sec(&u->sec)) return 1 ;
  if (tai_sec(&t->sec) > tai_sec(&u->sec)) return 0 ;
  return t->nano < u->nano ;
}