Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
35722cb4
Commit
35722cb4
authored
Nov 30, 2011
by
André Hentschel
Committed by
Alexandre Julliard
Nov 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Implement asctime_s.
parent
66db270d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
4 deletions
+29
-4
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
time.c
dlls/msvcrt/time.c
+25
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
35722cb4
...
...
@@ -1424,7 +1424,7 @@
@ cdecl abs(long) msvcrt.abs
@ cdecl acos(double) msvcrt.acos
@ cdecl asctime(ptr) msvcrt.asctime
@
stub
asctime_s
@
cdecl asctime_s(ptr long ptr) msvcrt.
asctime_s
@ cdecl asin(double) msvcrt.asin
@ cdecl atan(double) msvcrt.atan
@ cdecl atan2(double double) msvcrt.atan2
...
...
dlls/msvcr80/msvcr80.spec
View file @
35722cb4
...
...
@@ -1280,7 +1280,7 @@
@ cdecl abs(long) msvcrt.abs
@ cdecl acos(double) msvcrt.acos
@ cdecl asctime(ptr) msvcrt.asctime
@
stub
asctime_s
@
cdecl asctime_s(ptr long ptr) msvcrt.
asctime_s
@ cdecl asin(double) msvcrt.asin
@ cdecl atan(double) msvcrt.atan
@ cdecl atan2(double double) msvcrt.atan2
...
...
dlls/msvcr90/msvcr90.spec
View file @
35722cb4
...
...
@@ -1272,7 +1272,7 @@
@ cdecl acos(double) msvcrt.acos
@ cdecl -arch=x86_64 acosf(float) msvcrt.acosf
@ cdecl asctime(ptr) msvcrt.asctime
@
stub
asctime_s
@
cdecl asctime_s(ptr long ptr) msvcrt.
asctime_s
@ cdecl asin(double) msvcrt.asin
@ cdecl atan(double) msvcrt.atan
@ cdecl atan2(double double) msvcrt.atan2
...
...
dlls/msvcrt/msvcrt.spec
View file @
35722cb4
...
...
@@ -1214,7 +1214,7 @@
@ cdecl acos(double) MSVCRT_acos
@ cdecl -arch=x86_64 acosf(float) MSVCRT_acosf
@ cdecl asctime(ptr) MSVCRT_asctime
# stub asctime_s(ptr long ptr)
@ cdecl asctime_s(ptr long ptr) MSVCRT_asctime_s
@ cdecl asin(double) MSVCRT_asin
@ cdecl atan(double) MSVCRT_atan
@ cdecl atan2(double double) MSVCRT_atan2
...
...
dlls/msvcrt/time.c
View file @
35722cb4
...
...
@@ -903,6 +903,31 @@ char * CDECL MSVCRT_asctime(const struct MSVCRT_tm *mstm)
}
/*********************************************************************
* asctime_s (MSVCRT.@)
*/
int
CDECL
MSVCRT_asctime_s
(
char
*
time
,
MSVCRT_size_t
size
,
const
struct
MSVCRT_tm
*
mstm
)
{
char
*
asc
;
unsigned
int
len
;
if
(
!
MSVCRT_CHECK_PMT
(
time
!=
NULL
)
||
!
MSVCRT_CHECK_PMT
(
mstm
!=
NULL
))
{
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
asc
=
MSVCRT_asctime
(
mstm
);
len
=
strlen
(
asc
)
+
1
;
if
(
!
MSVCRT_CHECK_PMT
(
size
>=
len
))
{
*
MSVCRT__errno
()
=
MSVCRT_ERANGE
;
return
MSVCRT_ERANGE
;
}
strcpy
(
time
,
asc
);
return
0
;
}
/*********************************************************************
* _wasctime (MSVCRT.@)
*/
MSVCRT_wchar_t
*
CDECL
MSVCRT__wasctime
(
const
struct
MSVCRT_tm
*
mstm
)
...
...
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