ctime_compare.c 765 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* this is <ctime_compare.c>
 * ----------------------------------------------------------------------------
 *
 * $Id: ctime_compare.c,v 1.1 2000-08-06 12:00:39 thof Exp $
 *
 * 06/08/2000 by Thomas Forbriger (IfG Stuttgart)
 *
 * C-wrapper for FORTRAN time_compare libtime kernel function
 *
 * REVISIONS and CHANGES
 *    06/08/2000   V1.0   Thomas Forbriger
 *
 * ============================================================================
 */

#include <libtime.h>

long int time_compare(time_Ts Date1, time_Ts Date2)
{
  time_Tu *u1;
  time_Tu *u2;
  extern integer time_compare__();
  u1=(time_Tu *)&Date1;
  u2=(time_Tu *)&Date2;
  return((long int)time_compare__(&u1->farray, &u2->farray));
} /* time_compare */
 
/* ----- END OF ctime_compare.c ----- */