libtime++: Date and time calculation

◆ cmptest()

void cmptest ( time_Ts  date1,
time_Ts  date2 
)

Definition at line 77 of file ctlibtime.c.

References time_compare(), TIME_SLEN, and time_sprint().

Referenced by main(), and testlibtime().

80 {
81  char string1[TIME_SLEN];
82  char string2[TIME_SLEN];
83  strcpy(string1, time_sprint(date1));
84  strcpy(string2, time_sprint(date2));
85  printf("%s ?? %s : %d\n",
86  string1,string2,time_compare(date1, date2));
87  printf("%s ?? %s : %d\n",
88  string2,string1,time_compare(date2, date1));
89 } /* cmptest */
char * time_sprint(time_Ts Date)
Definition: ctime_sprint.c:39
integer time_compare(time_Ts Date1, time_Ts Date2)
Definition: ctime_compare.c:35
#define TIME_SLEN
Definition: libtime.h:113
Here is the call graph for this function:
Here is the caller graph for this function: