xref: /original-bsd/usr.bin/f77/libU77/gmtime_.c (revision 42c7e7a1)
1 /*-
2  * Copyright (c) 1980 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.proprietary.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)gmtime_.c	5.2 (Berkeley) 04/12/91";
10 #endif /* not lint */
11 
12 /*
13  * return broken down time
14  *
15  * calling sequence:
16  *	integer time, t[9]
17  *	call gmtime(time, t)
18  * where:
19  *	time is a system time. (see time(3F))
20  *	t will receive the broken down time assuming GMT.
21  *	(see ctime(3))
22  */
23 
24 int *gmtime();
25 
26 gmtime_(clock, t)
27 long *clock; long *t;
28 {
29 	int i;
30 	int *g;
31 
32 	g = gmtime(clock);
33 	for (i=0; i<9; i++)
34 		*t++ = *g++;
35 }
36