ReactOS 0.4.15-dev-7958-gcd0bb1a
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}
#define NULL
Definition: types.h:112
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
INT WINAPI GetDateFormatA(LCID lcid, DWORD dwFlags, const SYSTEMTIME *lpTime, LPCSTR lpFormat, LPSTR lpDateStr, INT cchOut)
Definition: lcformat.c:936
__u16 date
Definition: mkdosfs.c:8
#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
44 return 0;
45}
#define EINVAL
Definition: acclib.h:90
#define ERANGE
Definition: acclib.h:92
GLsizeiptr size
Definition: glext.h:5919
_CRTIMP int *__cdecl _errno(void)
Definition: errno.c:17
char * _strdate(char *date)
Definition: strdate.c:15