#include <precomp.h>
#include <tchar.h>
#include <time.h>
#include "bitsfixup.h"
Go to the source code of this file.
◆ DAYSPERWEEK
◆ HUNDREDYEAROFFSET
◆ MONSPERYEAR
◆ _TCHAR2
◆ _TCHAR4
◆ _tasctime()
Definition at line 150 of file asctime.c.
151{
154
155#ifndef _UNICODE
156 pstr =
data->asctime_buffer;
157#else
158 pstr =
data->wasctime_buffer;
159#endif
160
161 if(!pstr)
163
164
166
167 return pstr;
168}
static __inline void FillBuf(timebuf_t *buf, const struct tm *ptm)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
thread_data_t * msvcrt_get_thread_data(void)
◆ _tasctime_s()
Definition at line 106 of file asctime.c.
110{
111
113 (
unsigned int)ptm->
tm_sec > 59 ||
114 (
unsigned int)ptm->
tm_min > 59 ||
115 (
unsigned int)ptm->
tm_hour > 23 ||
116 (
unsigned int)ptm->
tm_mday > 31 ||
117 (
unsigned int)ptm->
tm_mon > 11 ||
118 (
unsigned int)ptm->
tm_year > 2038 ||
119 (
unsigned int)ptm->
tm_wday > 6 ||
120 (
unsigned int)ptm->
tm_yday > 365)
121 {
122#if 0
126#else
128#endif
130 __LINE__,
131 0);
132#endif
134 }
135
136
138
139 return 0;
140}
static size_t numberOfElements
void _invalid_parameter(const wchar_t *expression, const wchar_t *function, const wchar_t *file, unsigned int line, uintptr_t pReserved)
#define _CRT_WIDE(_String)
◆ FillBuf()
Definition at line 78 of file asctime.c.
79{
80
81
96}
#define HUNDREDYEAROFFSET
static const _TCHAR wday_name[DAYSPERWEEK][5]
FORCEINLINE _TCHAR2 IntToChar2(int x)
static const _TCHAR mon_name[MONSPERYEAR][5]
GLenum GLuint GLenum GLsizei const GLchar * buf
Referenced by _tasctime(), and _tasctime_s().
◆ IntToChar2()
Definition at line 62 of file asctime.c.
63{
64 union
65 {
69
70 u.array[0] =
'0' + (
x / 10);
71 u.array[1] =
'0' + (
x % 10);
72
74}
GLint GLint GLint GLint GLint x
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
Referenced by FillBuf().
◆ mon_name
Initial value:=
{
_T(
"Jan "),
_T(
"Feb "),
_T(
"Mar "),
_T(
"Apr "),
_T(
"May "),
_T(
"Jun "),
_T(
"Jul "),
_T(
"Aug "),
_T(
"Sep "),
_T(
"Oct "),
_T(
"Nov "),
_T(
"Dec ")
}
Definition at line 23 of file asctime.c.
Referenced by FillBuf().
◆ wday_name