|
||
char *ctime( time_t *tp )
time_t *tp; /* pointer to time_t value */
|
|
|
Synopsis |
#include "time.h"
The ctime function converts the time contained in the time_t pointed to by tp into a static string of 26 characters. The string is null-terminated, and takes the form:
|
|
Parameters |
tp is a pointer to a time_t , an arithmetic type defined in time.h , as obtainable by a call to time.
|
|
Return Value |
The address of the static string is returned.
|
|
Comments |
The same static string is used by all calls to ctime , successive calls will overwrite it.
ctime(tp) is equivalent to asctime(localtime(tp)).
|
|
See Also |
|
|
|
|