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