ctime_r(3) ctime_r(3)
NAME
ctimer, asctimer, localtimer - thread-safe convert time and date to
string
SYNOPSIS
#include <time.h>
char *ctimer(const timet *clock, char *buf);
char *asctimer(const struct tm *tm, char *buf);
struct tm *localtimer(const timet *clock, struct tm *result);
DESCRIPTION
ctimer(), asctimer() and localtimer() convert the time value
pointed to by clock and tm resp. in exactly the same form as ctime(),
asctime() and localtime().
ctimer() and asctimer() put the result into the array pointed to by
buf (which contains at least 26 bytes). localtimer() puts the result
into the structure pointed to by result.
Unlike ctime() and localtime(), the thread-safe functions ctimer()
and localtimer() are not required to set tzname.
RETURN VALUE
Upon successful completion ctimer() and asctimer() return a pointer
to the string pointed to by buf, localtimer() returns a pointer to
the structure pointed to by result. When an error is encountered, a
NULL pointer is returned.
ERRORS
No errors are defined.
SEE ALSO
asctime(3C), ctime(3C), localtime(3C), time(5).
Page 1 Reliant UNIX 5.44 Printed 11/98