Synopsis
#include <time.h>
char *ctime(const time_t *tp);
char *ctime_r(const time *tp, char *buf);
Description

ctime converts the *tp to a null terminated string. The returned string is held in a static buffer, this function is not re-entrant.

ctime_r is a re-entrant version of ctime, the parameter buf must point to an array at least 26 bytes in length.

See also

struct tm