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> gmtime_r<br />

gmtime_r (Reentrant) Converts the calendar time to broken-down time.<br />

#include <br />

struct tm *gmtime_r (<br />

const time_t *timer, /* calendar time */<br />

struct tm *resultp /* result */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

gmtime_r() is the reentrant version of the ANSI function gmtime(), as defined by<br />

POSIX 1003.1c. It converts the calendar time pointed to by timep into broken-down<br />

time, expressed as Coordinated Universal Time (UTC). The broken-down time is<br />

stored in the structure pointed to by resultp.<br />

The calendar time is generally obtained through a call to time().<br />

timer Points to the calendar time.<br />

resultp Points to the structure of type tm where gmtime_r() stores the<br />

result. The tm structure is defined in the mktime() description on<br />

page 3-111.<br />

gmtime_r() always returns NULL, since the concept of UTC is not supported by<br />

pREPC+.<br />

No error codes are returned.<br />

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

3

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

Saved successfully!

Ooh no, something went wrong!