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
1f5a4a80
Commit
1f5a4a80
authored
Jul 27, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Get rid of the now unused strndup/wstrndup functions.
parent
00c81e9d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
36 deletions
+0
-36
msvcrt.h
dlls/msvcrt/msvcrt.h
+0
-2
string.c
dlls/msvcrt/string.c
+0
-17
wcs.c
dlls/msvcrt/wcs.c
+0
-17
No files found.
dlls/msvcrt/msvcrt.h
View file @
1f5a4a80
...
...
@@ -115,8 +115,6 @@ extern thread_data_t *msvcrt_get_thread_data(void);
extern
int
MSVCRT___lc_codepage
;
void
msvcrt_set_errno
(
int
);
char
*
msvcrt_strndup
(
const
char
*
,
unsigned
int
);
MSVCRT_wchar_t
*
msvcrt_wstrndup
(
const
MSVCRT_wchar_t
*
,
unsigned
int
);
void
_purecall
(
void
);
void
_amsg_exit
(
int
errnum
);
...
...
dlls/msvcrt/string.c
View file @
1f5a4a80
...
...
@@ -30,23 +30,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcrt
);
/* INTERNAL: MSVCRT_malloc() based strndup */
char
*
msvcrt_strndup
(
const
char
*
buf
,
unsigned
int
size
)
{
char
*
ret
;
unsigned
int
len
=
strlen
(
buf
),
max_len
;
max_len
=
size
<=
len
?
size
:
len
+
1
;
ret
=
MSVCRT_malloc
(
max_len
);
if
(
ret
)
{
memcpy
(
ret
,
buf
,
max_len
);
ret
[
max_len
]
=
0
;
}
return
ret
;
}
/*********************************************************************
* _mbsdup (MSVCRT.@)
* _strdup (MSVCRT.@)
...
...
dlls/msvcrt/wcs.c
View file @
1f5a4a80
...
...
@@ -30,23 +30,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcrt
);
/* INTERNAL: MSVCRT_malloc() based wstrndup */
MSVCRT_wchar_t
*
msvcrt_wstrndup
(
const
MSVCRT_wchar_t
*
buf
,
unsigned
int
size
)
{
MSVCRT_wchar_t
*
ret
;
unsigned
int
len
=
strlenW
(
buf
),
max_len
;
max_len
=
size
<=
len
?
size
:
len
+
1
;
ret
=
MSVCRT_malloc
(
max_len
*
sizeof
(
MSVCRT_wchar_t
));
if
(
ret
)
{
memcpy
(
ret
,
buf
,
max_len
*
sizeof
(
MSVCRT_wchar_t
));
ret
[
max_len
]
=
0
;
}
return
ret
;
}
/*********************************************************************
* _wcsdup (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