1 // compatibility routines, non reentrant ....
6 struct tm *localtime_r(
13 memcpy(r, temp, sizeof(struct tm));
24 memcpy(r, temp, sizeof(struct tm));
34 temp = asctime(localtime(t));
41 Points to the string from which to extract tokens.
44 Points to a null-terminated set of delimiter characters.
47 Is a value-return parameter used by strtok_r() to record its progress through s1.
61 /* Scan leading delimiters. */
62 s += strspn(s, delim);
68 /* Find the end of the token. */
70 s = strpbrk(token, delim);
72 /* This token finishes the string. */
74 while (**save_ptr != '\0')
77 /* Terminate the token and make *SAVE_PTR point past it. */