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
2b3b8603
Commit
2b3b8603
authored
Apr 26, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added strtok_s implementation.
parent
59c1139f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
3 deletions
+30
-3
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
string.c
dlls/msvcrt/string.c
+27
-0
No files found.
dlls/msvcr80/msvcr80.spec
View file @
2b3b8603
...
...
@@ -1396,7 +1396,7 @@
@ cdecl strstr(str str) msvcrt.strstr
@ cdecl strtod(str ptr) msvcrt.strtod
@ cdecl strtok(str str) msvcrt.strtok
@
stub
strtok_s
@
cdecl strtok_s(ptr str ptr) msvcrt.
strtok_s
@ cdecl strtol(str ptr long) msvcrt.strtol
@ cdecl strtoul(str ptr long) msvcrt.strtoul
@ cdecl strxfrm(ptr str long) msvcrt.strxfrm
...
...
dlls/msvcr90/msvcr90.spec
View file @
2b3b8603
...
...
@@ -1380,7 +1380,7 @@
@ cdecl strstr(str str) msvcrt.strstr
@ cdecl strtod(str ptr) msvcrt.strtod
@ cdecl strtok(str str) msvcrt.strtok
@
stub
strtok_s
@
cdecl strtok_s(ptr str ptr) msvcrt.
strtok_s
@ cdecl strtol(str ptr long) msvcrt.strtol
@ cdecl strtoul(str ptr long) msvcrt.strtoul
@ cdecl strxfrm(ptr str long) msvcrt.strxfrm
...
...
dlls/msvcrt/msvcrt.spec
View file @
2b3b8603
...
...
@@ -1331,7 +1331,7 @@
@ cdecl strstr(str str) ntdll.strstr
@ cdecl strtod(str ptr) MSVCRT_strtod
@ cdecl strtok(str str) MSVCRT_strtok
# stub
strtok_s
@ cdecl strtok_s(ptr str ptr) MSVCRT_
strtok_s
@ cdecl strtol(str ptr long) MSVCRT_strtol
@ cdecl strtoul(str ptr long) MSVCRT_strtoul
@ cdecl strxfrm(ptr str long) MSVCRT_strxfrm
...
...
dlls/msvcrt/string.c
View file @
2b3b8603
...
...
@@ -111,6 +111,33 @@ char * CDECL MSVCRT_strtok( char *str, const char *delim )
return
ret
;
}
/*********************************************************************
* strtok_s (MSVCRT.@)
*/
char
*
CDECL
MSVCRT_strtok_s
(
char
*
str
,
const
char
*
delim
,
char
**
ctx
)
{
if
(
!
delim
||
!
ctx
||
(
!
str
&&
!*
ctx
))
{
MSVCRT__invalid_parameter
(
NULL
,
NULL
,
NULL
,
0
,
0
);
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
NULL
;
}
if
(
!
str
)
str
=
*
ctx
;
while
(
*
str
&&
strchr
(
delim
,
*
str
))
str
++
;
if
(
!*
str
)
return
NULL
;
*
ctx
=
str
+
1
;
while
(
**
ctx
&&
!
strchr
(
delim
,
**
ctx
))
(
*
ctx
)
++
;
if
(
**
ctx
)
*
(
*
ctx
)
++
=
0
;
return
str
;
}
/*********************************************************************
* _swab (MSVCRT.@)
...
...
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