#include <ctype.h>
#include <limits.h>
#include <string.h>
#include <time.h>
Defines | |
#define | __P(args) () |
#define | localtime_r my_localtime_r |
#define | match_char(ch1, ch2) if (ch1 != ch2) return NULL |
#define | match_string(cs1, s2) (strncasecmp ((cs1), (s2), strlen (cs1)) ? 0 : ((s2) += strlen (cs1), 1)) |
#define | get_number(from, to, n) |
#define | get_alt_number(from, to, n) |
#define | recursive(new_fmt) |
#define | HERE_D_T_FMT "%a %b %e %H:%M:%S %Y" |
#define | HERE_D_FMT "%m/%d/%y" |
#define | HERE_AM_STR "AM" |
#define | HERE_PM_STR "PM" |
#define | HERE_T_FMT_AMPM "%I:%M:%S %p" |
#define | HERE_T_FMT "%H:%M:%S" |
#define | __isleap(year) ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) |
Enumerations | |
enum | locale_status { not, loc = get (cax, "location"), raw } |
Functions | |
char * | strptime (char *buf, const char *format, struct tm *tm) const |
Variables | |
const unsigned short int | __mon_yday [2][13] |
#define __P | ( | args | ) | () |
#define get_alt_number | ( | from, | |||
to, | |||||
n | ) |
Value:
/* We don't have the alternate representation. */ \ get_number(from, to, n)
#define get_number | ( | from, | |||
to, | |||||
n | ) |
#define HERE_AM_STR "AM" |
#define HERE_D_FMT "%m/%d/%y" |
#define HERE_D_T_FMT "%a %b %e %H:%M:%S %Y" |
#define HERE_PM_STR "PM" |
#define HERE_T_FMT "%H:%M:%S" |
#define HERE_T_FMT_AMPM "%I:%M:%S %p" |
#define localtime_r my_localtime_r |
#define match_char | ( | ch1, | |||
ch2 | ) | if (ch1 != ch2) return NULL |
#define match_string | ( | cs1, | |||
s2 | ) | (strncasecmp ((cs1), (s2), strlen (cs1)) ? 0 : ((s2) += strlen (cs1), 1)) |
#define recursive | ( | new_fmt | ) |
Value:
(*(new_fmt) != '\0' \ && (rp = strptime_internal (rp, (new_fmt), tm, decided)) != NULL)
enum locale_status |
char* strptime | ( | char * | buf, | |
const char * | format, | |||
struct tm * | tm | |||
) | const |
const unsigned short int __mon_yday[2][13] |
Initial value:
{ { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }, { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 } }