|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1980 Regents of the University of California. ! 3: * All rights reserved. The Berkeley software License Agreement ! 4: * specifies the terms and conditions for redistribution. ! 5: * ! 6: * @(#)ltime_.c 5.1 6/7/85 ! 7: */ ! 8: ! 9: /* ! 10: * return broken down time ! 11: * ! 12: * calling sequence: ! 13: * integer time, t[9] ! 14: * call ltime(time, t) ! 15: * where: ! 16: * time is a system time. (see time(3F)) ! 17: * t will receive the broken down time corrected for local timezone. ! 18: * (see ctime(3)) ! 19: */ ! 20: ! 21: int *localtime(); ! 22: ! 23: ltime_(clock, t) ! 24: long *clock; long *t; ! 25: { ! 26: int i; ! 27: int *l; ! 28: ! 29: l = localtime(clock); ! 30: for (i=0; i<9; i++) ! 31: *t++ = *l++; ! 32: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.