ReactOS
0.4.16-dev-433-g6363f78
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
strtime.c
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING in the top level directory
3
* PROJECT: ReactOS system libraries
4
* FILE: lib/sdk/crt/time/strtime.c
5
* PURPOSE: Fills a buffer with a formatted time representation
6
* PROGRAMER: Ariadne
7
* UPDATE HISTORY:
8
* 28/12/98: Created
9
*/
10
#include <precomp.h>
11
12
/*
13
* @implemented
14
*/
15
char
*
_strtime
(
char
*
time
)
16
{
17
static
const
char
format
[] =
"HH':'mm':'ss"
;
18
19
GetTimeFormatA
(
LOCALE_NEUTRAL
, 0,
NULL
,
format
,
time
, 9);
20
21
return
time
;
22
}
23
24
int
CDECL
_strtime_s
(
char
*
time
,
size_t
size
)
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
}
EINVAL
#define EINVAL
Definition:
acclib.h:90
ERANGE
#define ERANGE
Definition:
acclib.h:92
NULL
#define NULL
Definition:
types.h:112
CDECL
#define CDECL
Definition:
compat.h:29
size
GLsizeiptr size
Definition:
glext.h:5919
GetTimeFormatA
INT WINAPI GetTimeFormatA(LCID lcid, DWORD dwFlags, const SYSTEMTIME *lpTime, LPCSTR lpFormat, LPSTR lpTimeStr, INT cchOut)
Definition:
lcformat.c:1044
time
__u16 time
Definition:
mkdosfs.c:8
LOCALE_NEUTRAL
#define LOCALE_NEUTRAL
_errno
_CRTIMP int *__cdecl _errno(void)
Definition:
errno.c:17
_strtime_s
int CDECL _strtime_s(char *time, size_t size)
Definition:
strtime.c:24
_strtime
char * _strtime(char *time)
Definition:
strtime.c:15
format
Definition:
format.c:58
sdk
lib
crt
time
strtime.c
Generated on Tue Jan 7 2025 06:18:27 for ReactOS by
1.9.6