SYNOPSIS
#include <time.h>
char *ctime_r(const time_t *clock, char *buf);
DESCRIPTION
The
asctime_r(localtime(clock), buf);
The string returned by
Sun Sep 16 01:03:52 1973\n\0
A side-effect of calling
This function is reentrant.
PARAMETERS
- clock
-
Points to the time to be converted to string format.
- buf
-
Specifies the buffer where the converted time is stored. This buffer must be at least 26 bytes.
RETURN VALUES
On success,
CONFORMANCE
POSIX.1 (1996).
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
Refer to
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
asctime() ,asctime_r() ,clock() ,ctime() ,difftime() ,gmtime() ,gmtime_r() ,localtime() ,localtime_r() ,mktime() ,strftime() ,time() ,tzset() ,wcsftime()
PTC MKS Toolkit 10.4 Documentation Build 39.