File: taia_less.c

package info (click to toggle)
djbdns 1%3A1.05-22
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,180 kB
  • sloc: ansic: 15,836; makefile: 920; python: 728; sh: 237
file content (12 lines) | stat: -rw-r--r-- 289 bytes parent folder | download | duplicates (23)
1
2
3
4
5
6
7
8
9
10
11
12
#include "taia.h"

/* XXX: breaks tai encapsulation */

int taia_less(const struct taia *t,const struct taia *u)
{
  if (t->sec.x < u->sec.x) return 1;
  if (t->sec.x > u->sec.x) return 0;
  if (t->nano < u->nano) return 1;
  if (t->nano > u->nano) return 0;
  return t->atto < u->atto;
}