Navigation

Operators and Keywords

Function List:

C++ API

strftime.c File Reference

#include <sys/types.h>
#include <time.h>

Include dependency graph for strftime.c:


Defines

#define DO_MULTIBYTE   (HAVE_MBLEN && ! MULTIBYTE_IS_FORMAT_SAFE)
#define memcpy(d, s, n)   bcopy (s, d, n)
#define __P(args)   ()
#define PTR   char *
#define CHAR_BIT   8
#define TYPE_SIGNED(t)   ((t) -1 < 0)
#define INT_STRLEN_BOUND(t)   ((sizeof (t) * CHAR_BIT - TYPE_SIGNED (t)) * 302 / 100 + 1 + TYPE_SIGNED (t))
#define TM_YEAR_BASE   1900
#define __isleap(year)   ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
#define gmtime_r   my_gmtime_r
#define localtime_r   my_localtime_r
#define add(n, f)
#define cpy(n, s)   add ((n), memcpy((PTR) p, (PTR) (s), (n)))
#define ISO_WEEK_START_WDAY   1
#define ISO_WEEK1_WDAY   4
#define YDAY_MINIMUM   (-366)
#define DO_NUMBER(d, v)   digits = d; number_value = v; goto do_number
#define DO_NUMBER_SPACEPAD(d, v)   digits = d; number_value = v; goto do_number_spacepad

Functions

size_t strftime (char *s, size_t maxsize, const char *format, const struct tm *tp)

Define Documentation

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

#define __P ( args   )     ()

#define add ( n,
 ) 

Value:

do                                                                            \
    {                                                                         \
      i += (n);                                                               \
      if (i >= maxsize)                                                       \
        return 0;                                                             \
      else                                                                    \
        if (p)                                                                \
          {                                                                   \
            f;                                                                \
            p += (n);                                                         \
          }                                                                   \
    } while (0)

#define CHAR_BIT   8

#define cpy ( n,
 )     add ((n), memcpy((PTR) p, (PTR) (s), (n)))

#define DO_MULTIBYTE   (HAVE_MBLEN && ! MULTIBYTE_IS_FORMAT_SAFE)

#define DO_NUMBER ( d,
 )     digits = d; number_value = v; goto do_number

#define DO_NUMBER_SPACEPAD ( d,
 )     digits = d; number_value = v; goto do_number_spacepad

#define gmtime_r   my_gmtime_r

#define INT_STRLEN_BOUND (  )     ((sizeof (t) * CHAR_BIT - TYPE_SIGNED (t)) * 302 / 100 + 1 + TYPE_SIGNED (t))

#define ISO_WEEK1_WDAY   4

#define ISO_WEEK_START_WDAY   1

#define localtime_r   my_localtime_r

#define memcpy ( d,
s,
 )     bcopy (s, d, n)

#define PTR   char *

#define TM_YEAR_BASE   1900

#define TYPE_SIGNED (  )     ((t) -1 < 0)

#define YDAY_MINIMUM   (-366)


Function Documentation

size_t strftime ( char *  s,
size_t  maxsize,
const char *  format,
const struct tm *  tp 
)