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
7a43f0cb
Commit
7a43f0cb
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 _Getdays implementation.
parent
4bb1e9c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
locale.c
dlls/msvcrt/locale.c
+26
-6
No files found.
dlls/msvcrt/locale.c
View file @
7a43f0cb
...
...
@@ -419,13 +419,33 @@ MSVCRT_wchar_t* CDECL MSVCRT__wsetlocale(int category, const MSVCRT_wchar_t* loc
/*********************************************************************
* _Getdays (MSVCRT.@)
*/
c
onst
c
har
*
CDECL
_Getdays
(
void
)
char
*
CDECL
_Getdays
(
void
)
{
static
const
char
MSVCRT_days
[]
=
":Sun:Sunday:Mon:Monday:Tue:Tuesday:Wed:"
"Wednesday:Thu:Thursday:Fri:Friday:Sat:Saturday"
;
/* FIXME: Use locale */
TRACE
(
"(void) semi-stub
\n
"
);
return
MSVCRT_days
;
MSVCRT___lc_time_data
*
cur
=
get_locinfo
()
->
lc_time_curr
;
int
i
,
len
,
size
;
char
*
out
;
TRACE
(
"
\n
"
);
size
=
cur
->
str
[
2
*
7
]
-
cur
->
str
[
0
];
out
=
MSVCRT_malloc
(
size
+
1
);
if
(
!
out
)
return
NULL
;
size
=
0
;
for
(
i
=
0
;
i
<
7
;
i
++
)
{
out
[
size
++
]
=
':'
;
len
=
strlen
(
cur
->
str
[
i
]);
memcpy
(
&
out
[
size
],
cur
->
str
[
i
],
len
);
size
+=
len
;
out
[
size
++
]
=
':'
;
len
=
strlen
(
cur
->
str
[
7
+
i
]);
memcpy
(
&
out
[
size
],
cur
->
str
[
7
+
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