06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

pREPC+ <strong>System</strong> <strong>Calls</strong> asctime<br />

asctime Converts the broken-down time to a string.<br />

#include <br />

char *asctime (<br />

const struct tm *timeptr /* broken-down time */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

Notes<br />

See Also<br />

The function asctime() converts the broken-down time pointed to by timeptr to<br />

an equivalent string representation of the form:<br />

Sun Jan 1 12:30:13 1995\n\0<br />

timeptr Points to a tm structure that stores the broken-down time. The tm<br />

structure is defined in the mktime() description on page 3-111.<br />

The asctime() function returns a pointer to the calendar time string.<br />

Refer to Appendix B.<br />

This function is non-reentrant as it returns a pointer to a statically allocated data<br />

area. The reentrant version of this function is asctime_r().<br />

Callable From<br />

■ Task<br />

asctime_r, ctime, mktime, time<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 3-5<br />

3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!