ReactOS 0.4.15-dev-7934-g1dc8d80
ctime.c File Reference
#include <errno.h>
#include <tchar.h>
#include <time.h>
#include "bitsfixup.h"
Include dependency graph for ctime.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MINGW_HAS_SECURE_API   1
 
#define RC_INVOKED   1
 

Functions

_CRTIMP errno_t __cdecl localtime_s (struct tm *_Tm, const time_t *_Time)
 
errno_t _tctime_s (_TCHAR *buffer, size_t numberOfElements, const time_t *time)
 
_TCHAR_tctime (const time_t *ptime)
 

Macro Definition Documentation

◆ MINGW_HAS_SECURE_API

#define MINGW_HAS_SECURE_API   1

Definition at line 8 of file ctime.c.

◆ RC_INVOKED

#define RC_INVOKED   1

Definition at line 11 of file ctime.c.

Function Documentation

◆ _tctime()

_TCHAR * _tctime ( const time_t ptime)

Definition at line 46 of file ctime.c.

47{
48 struct tm *ptm = localtime(ptime);
49 if (!ptm)
50 {
51 return 0;
52 }
53 return _tasctime(ptm);
54}
#define _tasctime
Definition: tchar.h:653
_CRTIMP struct tm *__cdecl localtime(const time_t *_Time)
Definition: time.h:416
Definition: time.h:68

◆ _tctime_s()

errno_t _tctime_s ( _TCHAR buffer,
size_t  numberOfElements,
const time_t time 
)

Definition at line 27 of file ctime.c.

28{
29 struct tm _tm;
30
31 if (localtime_s(&_tm, time) == EINVAL)
32 {
33 return EINVAL;
34 }
35 return _tasctime_s(buffer, numberOfElements, &_tm);
36}
#define EINVAL
Definition: acclib.h:90
_CRTIMP errno_t __cdecl localtime_s(struct tm *_Tm, const time_t *_Time)
Definition: time.h:417
GLuint buffer
Definition: glext.h:5915
#define _tasctime_s
Definition: tchar.h:665
__u16 time
Definition: mkdosfs.c:8
static size_t numberOfElements
Definition: string.c:87

◆ localtime_s()

_CRTIMP errno_t __cdecl localtime_s ( struct tm _Tm,
const time_t _Time 
)

Definition at line 417 of file time.h.

417{ return _localtime64_s(_Tm,_Time); }
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm * _Tm
Definition: time.h:148
_In_ size_t _In_ const __time32_t * _Time
Definition: time.h:192

Referenced by _tctime_s().