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
909ffb79
Commit
909ffb79
authored
Feb 14, 2003
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented _mbsnbcat.
parent
cf27a7fa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
mbcs.c
dlls/msvcrt/mbcs.c
+27
-0
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
No files found.
dlls/msvcrt/mbcs.c
View file @
909ffb79
...
...
@@ -932,6 +932,33 @@ MSVCRT_size_t _mbsnbcnt(const unsigned char* str, MSVCRT_size_t len)
/*********************************************************************
* _mbsnbcat(MSVCRT.@)
*/
unsigned
char
*
_mbsnbcat
(
unsigned
char
*
dst
,
const
unsigned
char
*
src
,
MSVCRT_size_t
len
)
{
if
(
MSVCRT___mb_cur_max
>
1
)
{
char
*
res
=
dst
;
while
(
*
dst
)
{
if
(
MSVCRT_isleadbyte
(
*
dst
++
))
{
if
(
*
dst
)
{
dst
++
;
}
else
{
/* as per msdn overwrite the lead byte in front of '\0' */
dst
--
;
break
;
}
}
}
while
(
*
src
&&
len
--
)
*
dst
++
=
*
src
++
;
*
dst
=
'\0'
;
return
res
;
}
return
strncat
(
dst
,
src
,
len
);
/* ASCII CP */
}
/*********************************************************************
* _mbsncat(MSVCRT.@)
*/
unsigned
char
*
_mbsncat
(
unsigned
char
*
dst
,
const
unsigned
char
*
src
,
MSVCRT_size_t
len
)
...
...
dlls/msvcrt/msvcrt.spec
View file @
909ffb79
...
...
@@ -359,7 +359,7 @@
@ cdecl _mbsinc(str) _mbsinc
@ cdecl _mbslen(str) _mbslen
@ cdecl _mbslwr(str) _mbslwr
@
stub _mbsnbcat #(str str long)
@
cdecl _mbsnbcat (str str long) _mbsnbcat
@ cdecl _mbsnbcmp(str str long) _mbsnbcmp
@ cdecl _mbsnbcnt(ptr long) _mbsnbcnt
@ stub _mbsnbcoll #(str str long)
...
...
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