ReactOS  0.4.15-dev-3163-gf17c2c0
wstrdate.c File Reference
#include <precomp.h>
Include dependency graph for wstrdate.c:

Go to the source code of this file.

Functions

wchar_t_wstrdate (wchar_t *date)
 
int CDECL _wstrdate_s (wchar_t *date, size_t size)
 

Function Documentation

◆ _wstrdate()

wchar_t* _wstrdate ( wchar_t date)

Definition at line 15 of file wstrdate.c.

16 {
17  static const WCHAR format[] = { 'M','M','\'','/','\'','d','d','\'','/','\'','y','y',0 };
18 
20 
21  return date;
22 
23 }
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
__wchar_t WCHAR
Definition: xmlstorage.h:180
INT WINAPI GetDateFormatW(LCID lcid, DWORD dwFlags, const SYSTEMTIME *lpTime, LPCWSTR lpFormat, LPWSTR lpDateStr, INT cchOut)
Definition: lcformat.c:979
__u16 date
Definition: mkdosfs.c:366
#define NULL
Definition: types.h:112
#define LOCALE_NEUTRAL
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by _wstrdate_s().

◆ _wstrdate_s()

int CDECL _wstrdate_s ( wchar_t date,
size_t  size 
)

Definition at line 25 of file wstrdate.c.

26 {
27  if(date && size)
28  date[0] = '\0';
29 
30  if(!date) {
31  *_errno() = EINVAL;
32  return EINVAL;
33  }
34 
35  if(size < 9) {
36  *_errno() = ERANGE;
37  return ERANGE;
38  }
39 
40  _wstrdate(date);
41  return 0;
42 }
Definition: arc.h:39
wchar_t * _wstrdate(wchar_t *date)
Definition: wstrdate.c:15
GLsizeiptr size
Definition: glext.h:5919
_CRTIMP int *__cdecl _errno(void)
Definition: errno.c:19
#define ERANGE
Definition: acclib.h:92
__u16 date
Definition: mkdosfs.c:366