ReactOS  0.4.15-dev-1397-g19779b3
strtime.c File Reference
#include <precomp.h>
Include dependency graph for strtime.c:

Go to the source code of this file.

Functions

char_strtime (char *time)
 
int CDECL _strtime_s (char *time, size_t size)
 

Function Documentation

◆ _strtime()

char* _strtime ( char time)

Definition at line 15 of file strtime.c.

16 {
17  static const char format[] = "HH':'mm':'ss";
18 
20 
21  return time;
22 }
__u16 time
Definition: mkdosfs.c:366
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
INT WINAPI GetTimeFormatA(LCID lcid, DWORD dwFlags, const SYSTEMTIME *lpTime, LPCSTR lpFormat, LPSTR lpTimeStr, INT cchOut)
Definition: lcformat.c:1030
#define NULL
Definition: types.h:112
#define LOCALE_NEUTRAL

Referenced by _strtime_s().

◆ _strtime_s()

int CDECL _strtime_s ( char time,
size_t  size 
)

Definition at line 24 of file strtime.c.

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