POSIX C Language Support (reentrant) option group.
More...
|
| int | rand_r (unsigned int *seed) |
| | Generate a pseudo-random number (reentrant).
|
| |
| void | qsort_r (void *base, size_t nmemb, size_t size, int(*compar)(const void *a, const void *b, void *arg), void *arg) |
| | Sort an array with a comparison function that takes a context argument.
|
| |
| char * | strtok_r (char *str, const char *sep, char **state) |
| | Tokenize a string into tokens (reentrant).
|
| |
| char * | asctime_r (const struct tm *ZRESTRICT tm, char *ZRESTRICT buf) |
| | Convert broken-down time to a string (thread-safe version of asctime()).
|
| |
| char * | ctime_r (const time_t *clock, char *buf) |
| | Convert a time_t to a string (thread-safe version of ctime()).
|
| |
| struct tm * | gmtime_r (const time_t *ZRESTRICT timer, struct tm *ZRESTRICT result) |
| | Convert a time_t to UTC broken-down time (thread-safe version of gmtime()).
|
| |
| struct tm * | localtime_r (const time_t *ZRESTRICT timer, struct tm *ZRESTRICT result) |
| | Convert a time_t to local broken-down time (thread-safe version of localtime()).
|
| |
POSIX C Language Support (reentrant) option group.
◆ asctime_r()
| char * asctime_r |
( |
const struct tm *ZRESTRICT |
tm, |
|
|
char *ZRESTRICT |
buf |
|
) |
| |
◆ ctime_r()
| char * ctime_r |
( |
const time_t * |
clock, |
|
|
char * |
buf |
|
) |
| |
◆ gmtime_r()
| struct tm * gmtime_r |
( |
const time_t *ZRESTRICT |
timer, |
|
|
struct tm *ZRESTRICT |
result |
|
) |
| |
Convert a time_t to UTC broken-down time (thread-safe version of gmtime()).
- Parameters
-
| timer | Pointer to the time_t value. |
| result | Caller-supplied storage for the result. |
- Returns
result on success, or NULL on failure.
◆ localtime_r()
| struct tm * localtime_r |
( |
const time_t *ZRESTRICT |
timer, |
|
|
struct tm *ZRESTRICT |
result |
|
) |
| |
Convert a time_t to local broken-down time (thread-safe version of localtime()).
- Parameters
-
| timer | Pointer to the time_t value. |
| result | Caller-supplied storage for the result. |
- Returns
result on success, or NULL on failure.
◆ qsort_r()
| void qsort_r |
( |
void * |
base, |
|
|
size_t |
nmemb, |
|
|
size_t |
size, |
|
|
int(*)(const void *a, const void *b, void *arg) |
compar, |
|
|
void * |
arg |
|
) |
| |
◆ rand_r()
| int rand_r |
( |
unsigned int * |
seed | ) |
|
◆ strtok_r()
| char * strtok_r |
( |
char * |
str, |
|
|
const char * |
sep, |
|
|
char ** |
state |
|
) |
| |