13.07.2015 Views

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Libraries2−39Miscellaneous functionsStdio.h Wchar.h Descriptionmemset(*s,c,n) wmemset(*s,c,n) Fills the first n bytes of *swith character c and returns*s.strerror(errno) − Typically, the values for errno come from int errno.This function returns a pointer to the associated errormessage. (See also section2.2.3, errno.h)strlen(*s) wcslen(*s) Returns the length of string*s.2.2.22 TIME.H AND WCHAR.HThe header file time.h provides facilities to retrieve and use the(calendar) date and time, and the process time. Time can be representedas an integer value, or can be broken−down in components. Twoarithmetic data types are defined which are capable of holding the integerrepresentation of times:clock_ttime_tunsigned long longunsigned longThe type struct tm below is defined according to ISO/IEC9899 with oneexception: this implementation does not support leap seconds. Thestruct tm type is defines as follows:struct tm{int tm_sec; /* seconds after the minute − [0, 59] */int tm_min; /* minutes after the hour − [0, 59] */int tm_hour; /* hours since midnight − [0, 23] */int tm_mday; /* day of the month − [1, 31] */int tm_mon; /* months since January − [0, 11] */int tm_year; /* year since 1900 */int tm_wday; /* days since Sunday − [0, 6] */int tm_yday; /* days since January 1 − [0, 365] */int tm_isdst; /* Daylight Saving Time flag */};• • • • • • • •

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

Saved successfully!

Ooh no, something went wrong!