xref: /original-bsd/usr.bin/f77/libU77/ltime_.c (revision 93ab02a6)
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[] = "@(#)ltime_.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 ltime(time, t)
18  * where:
19  *	time is a  system time. (see time(3F))
20  *	t will receive the broken down time corrected for local timezone.
21  *	(see ctime(3))
22  */
23 
24 int *localtime();
25 
26 ltime_(clock, t)
27 long *clock; long *t;
28 {
29 	int i;
30 	int *l;
31 
32 	l = localtime(clock);
33 	for (i=0; i<9; i++)
34 		*t++ = *l++;
35 }
36