1: /*
   2: char id_ltime[] = "@(#)ltime_.c	1.1";
   3:  *
   4:  * return broken down time
   5:  *
   6:  * calling sequence:
   7:  *	integer time, t[9]
   8:  *	call ltime(time, t)
   9:  * where:
  10:  *	time is a  system time. (see time(3F))
  11:  *	t will receive the broken down time corrected for local timezone.
  12:  *	(see ctime(3))
  13:  */
  14: 
  15: #include    <time.h>
  16: #include    <sys/types.h>
  17: 
  18: struct tm *localtime();
  19: 
  20: ltime_(clock, t)
  21: time_t *clock; struct tm *t;
  22: {
  23:     struct tm *l;
  24: 
  25:     l = localtime(clock);
  26:     *t = *l;
  27: }

Defined functions

ltime_ defined in line 20; never used
Last modified: 1983-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 675
Valid CSS Valid XHTML 1.0 Strict