2.9BSD/usr/src/lib/libU77/ltime_.c

Compare this file to the similar file:
Show the results in this format:

/*
char id_ltime[] = "@(#)ltime_.c	1.1";
 *
 * return broken down time
 *
 * calling sequence:
 *	integer time, t[9]
 *	call ltime(time, t)
 * where:
 *	time is a  system time. (see time(3F))
 *	t will receive the broken down time corrected for local timezone.
 *	(see ctime(3))
 */

#include	<time.h>
#include	<sys/types.h>

struct tm *localtime();

ltime_(clock, t)
time_t *clock; struct tm *t;
{
	struct tm *l;

	l = localtime(clock);
	*t = *l;
}