1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate * Copyright (c) 1987 Regents of the University of California.
3*0Sstevel@tonic-gate * All rights reserved.
4*0Sstevel@tonic-gate *
5*0Sstevel@tonic-gate * This code is derived from software contributed to Berkeley by
6*0Sstevel@tonic-gate * Arthur Olson.
7*0Sstevel@tonic-gate *
8*0Sstevel@tonic-gate * Redistribution and use in source and binary forms are permitted
9*0Sstevel@tonic-gate * provided that the above copyright notice and this paragraph are
10*0Sstevel@tonic-gate * duplicated in all such forms and that any documentation,
11*0Sstevel@tonic-gate * advertising materials, and other materials related to such
12*0Sstevel@tonic-gate * distribution and use acknowledge that the software was developed
13*0Sstevel@tonic-gate * by the University of California, Berkeley. The name of the
14*0Sstevel@tonic-gate * University may not be used to endorse or promote products derived
15*0Sstevel@tonic-gate * from this software without specific prior written permission.
16*0Sstevel@tonic-gate * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
17*0Sstevel@tonic-gate * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
18*0Sstevel@tonic-gate * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19*0Sstevel@tonic-gate */
20*0Sstevel@tonic-gate
21*0Sstevel@tonic-gate
22*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI"
23*0Sstevel@tonic-gate /* from Arthur Olson's 3.1 */
24*0Sstevel@tonic-gate
25*0Sstevel@tonic-gate /*LINTLIBRARY*/
26*0Sstevel@tonic-gate
27*0Sstevel@tonic-gate #include <sys/types.h>
28*0Sstevel@tonic-gate #include <time.h>
29*0Sstevel@tonic-gate
30*0Sstevel@tonic-gate char *
ctime(timep)31*0Sstevel@tonic-gate ctime(timep)
32*0Sstevel@tonic-gate time_t * timep;
33*0Sstevel@tonic-gate {
34*0Sstevel@tonic-gate return asctime(localtime(timep));
35*0Sstevel@tonic-gate }
36