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
07c80924
Commit
07c80924
authored
Oct 12, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Oct 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Implemented wcscat_s.
parent
dfb64699
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-0
wcs.c
dlls/msvcrt/wcs.c
+26
-0
No files found.
dlls/msvcrt/msvcrt.spec
View file @
07c80924
...
...
@@ -762,6 +762,7 @@
@ cdecl vswprintf(ptr wstr ptr) MSVCRT_vswprintf
@ cdecl vwprintf(wstr ptr) MSVCRT_vwprintf
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcscat_s(wstr long wstr) MSVCRT_wcscat_s
@ cdecl wcschr(wstr long) ntdll.wcschr
@ cdecl wcscmp(wstr wstr) ntdll.wcscmp
@ cdecl wcscoll(wstr wstr) MSVCRT_wcscoll
...
...
dlls/msvcrt/wcs.c
View file @
07c80924
...
...
@@ -1077,3 +1077,29 @@ INT CDECL MSVCRT_wcsncpy_s( MSVCRT_wchar_t* wcDest, MSVCRT_size_t numElement, co
return
0
;
}
/******************************************************************
* wcscat_s (MSVCRT.@)
*
*/
INT
CDECL
MSVCRT_wcscat_s
(
MSVCRT_wchar_t
*
dst
,
MSVCRT_size_t
elem
,
const
MSVCRT_wchar_t
*
src
)
{
MSVCRT_wchar_t
*
ptr
=
dst
;
if
(
!
dst
||
elem
==
0
)
return
MSVCRT_EINVAL
;
if
(
!
src
)
{
dst
[
0
]
=
'\0'
;
return
MSVCRT_EINVAL
;
}
/* seek to end of dst string (or elem if no end of string is found */
while
(
ptr
<
dst
+
elem
&&
*
ptr
!=
'\0'
)
ptr
++
;
while
(
ptr
<
dst
+
elem
)
{
if
((
*
ptr
++
=
*
src
++
)
==
'\0'
)
return
0
;
}
/* not enough space */
dst
[
0
]
=
'\0'
;
return
MSVCRT_ERANGE
;
}
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