ReactOS  0.4.15-dev-499-g1f31905
strdate.c File Reference
#include <precomp.h>
Include dependency graph for strdate.c:

Go to the source code of this file.

Functions

char_strdate (char *date)
 
int CDECL _strdate_s (char *date, size_t size)
 

Function Documentation

◆ _strdate()

char* _strdate ( char date)

Definition at line 15 of file strdate.c.

16 {
17  static const char format[] = "MM'/'dd'/'yy";
18 
20 
21  return date;
22 
23 }
INT WINAPI GetDateFormatA(LCID lcid, DWORD dwFlags, const SYSTEMTIME *lpTime, LPCSTR lpFormat, LPSTR lpDateStr, INT cchOut)
Definition: lcformat.c:922
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
smooth NULL
Definition: ftsmooth.c:416
__u16 date
Definition: mkdosfs.c:366
#define LOCALE_NEUTRAL

Referenced by _strdate_s().

◆ _strdate_s()

int CDECL _strdate_s ( char date,
size_t  size 
)

Definition at line 28 of file strdate.c.

29 {
30  if(date && size)
31  date[0] = '\0';
32 
33  if(!date) {
34  *_errno() = EINVAL;
35  return EINVAL;
36  }
37 
38  if(size < 9) {
39  *_errno() = ERANGE;
40  return ERANGE;
41  }
42 
43  _strdate(date);
44  return 0;
45 }
Definition: arc.h:39
char * _strdate(char *date)
Definition: strdate.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