Navigation

Operators and Keywords

Function List:

C++ API

strptime.c File Reference

#include <ctype.h>
#include <limits.h>
#include <string.h>
#include <time.h>

Include dependency graph for strptime.c:


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 Documentation

#define __isleap ( year   )     ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))

#define __P ( args   )     ()

#define get_alt_number ( from,
to,
 ) 

Value:

/* We don't have the alternate representation.  */                            \
  get_number(from, to, n)

#define get_number ( from,
to,
 ) 

Value:

do {                                                                          \
    int __n = n;                                                              \
    val = 0;                                                                  \
    while (*rp == ' ')                                                        \
      ++rp;                                                                   \
    if (*rp < '0' || *rp > '9')                                               \
      return NULL;                                                            \
    do {                                                                      \
      val *= 10;                                                              \
      val += *rp++ - '0';                                                     \
    } while (--__n > 0 && val * 10 <= to && *rp >= '0' && *rp <= '9');        \
    if (val < from || val > to)                                               \
      return NULL;                                                            \
  } while (0)

#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)


Enumeration Type Documentation

Enumerator:
not 
loc 
raw 


Function Documentation

char* strptime ( char *  buf,
const char *  format,
struct tm *  tm 
) const


Variable Documentation

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 }
  }