Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
d82dd2a4
Commit
d82dd2a4
authored
Dec 07, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added _Getmonths implementation.
parent
7a43f0cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
7 deletions
+28
-7
locale.c
dlls/msvcrt/locale.c
+28
-7
No files found.
dlls/msvcrt/locale.c
View file @
d82dd2a4
...
...
@@ -451,14 +451,35 @@ char* CDECL _Getdays(void)
/*********************************************************************
* _Getmonths (MSVCRT.@)
*/
c
onst
c
har
*
CDECL
_Getmonths
(
void
)
char
*
CDECL
_Getmonths
(
void
)
{
static
const
char
MSVCRT_months
[]
=
":Jan:January:Feb:February:Mar:March:Apr:"
"April:May:May:Jun:June:Jul:July:Aug:August:Sep:September:Oct:"
"October:Nov:November:Dec:December"
;
/* FIXME: Use locale */
TRACE
(
"(void) semi-stub
\n
"
);
return
MSVCRT_months
;
static
const
int
months_offset
=
14
;
MSVCRT___lc_time_data
*
cur
=
get_locinfo
()
->
lc_time_curr
;
int
i
,
len
,
size
;
char
*
out
;
TRACE
(
"
\n
"
);
size
=
cur
->
str
[
months_offset
+
2
*
12
]
-
cur
->
str
[
months_offset
];
out
=
MSVCRT_malloc
(
size
+
1
);
if
(
!
out
)
return
NULL
;
size
=
0
;
for
(
i
=
0
;
i
<
12
;
i
++
)
{
out
[
size
++
]
=
':'
;
len
=
strlen
(
cur
->
str
[
months_offset
+
i
]);
memcpy
(
&
out
[
size
],
cur
->
str
[
months_offset
+
i
],
len
);
size
+=
len
;
out
[
size
++
]
=
':'
;
len
=
strlen
(
cur
->
str
[
months_offset
+
12
+
i
]);
memcpy
(
&
out
[
size
],
cur
->
str
[
months_offset
+
12
+
i
],
len
);
size
+=
len
;
}
return
out
;
}
/*********************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment