Alexandre Julliard : ntdll: Export strnlen.

Alexandre Julliard julliard at winehq.org
Fri Jan 19 15:43:20 CST 2018


Module: wine
Branch: master
Commit: 7bcb214158a102e296931e8d2610e3fbff79437b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7bcb214158a102e296931e8d2610e3fbff79437b

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Jan 18 19:19:28 2018 +0100

ntdll: Export strnlen.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/ntdll.spec | 1 +
 dlls/ntdll/string.c   | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec
index 95581ec..097140f 100644
--- a/dlls/ntdll/ntdll.spec
+++ b/dlls/ntdll/ntdll.spec
@@ -1431,6 +1431,7 @@
 @ cdecl -private strncat(str str long) NTDLL_strncat
 @ cdecl -private strncmp(str str long) NTDLL_strncmp
 @ cdecl -private strncpy(ptr str long) NTDLL_strncpy
+@ cdecl -private strnlen(ptr long) NTDLL_strnlen
 @ cdecl -private strpbrk(str str) NTDLL_strpbrk
 @ cdecl -private strrchr(str long) NTDLL_strrchr
 @ cdecl -private strspn(str str) NTDLL_strspn
diff --git a/dlls/ntdll/string.c b/dlls/ntdll/string.c
index c349add..e0bf5be 100644
--- a/dlls/ntdll/string.c
+++ b/dlls/ntdll/string.c
@@ -164,6 +164,15 @@ char * __cdecl NTDLL_strncpy( char *dst, const char *src, size_t len )
 
 
 /*********************************************************************
+ *                  strnlen   (NTDLL.@)
+ */
+size_t __cdecl NTDLL_strnlen( const char *str, size_t len )
+{
+    return strnlen( str, len );
+}
+
+
+/*********************************************************************
  *                  strpbrk   (NTDLL.@)
  */
 char * __cdecl NTDLL_strpbrk( const char *str, const char *accept )




More information about the wine-cvs mailing list