ref: ad390eef16b53905245bf16859082c9a52b35c6c
parent: 02e4f0a7bed09cd0f60d8a0b101cf0a82baf588c
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed Sep 19 10:56:08 EDT 2018
[lib/c] Remove wcnslen.c It is not a c99 interface.
--- a/lib/c/target/script/objlst.mk
+++ b/lib/c/target/script/objlst.mk
@@ -20,7 +20,7 @@
isgraph.o islower.o isprint.o ispunct.o isspace.o isupper.o \
isxdigit.o toupper.o tolower.o ctype.o setlocale.o \
localeconv.o atoi.o atol.o atoll.o atexit.o abort.o exit.o \
- errno.o _sys_errlist.o strnlen.o wcsnlen.o
+ errno.o _sys_errlist.o strnlen.o
#rules
__abs.o: ../../__abs.c
@@ -313,7 +313,4 @@
vsprintf.o: ../../vsprintf.c
$(CC) $(SCC_CFLAGS) ../../vsprintf.c -c
-
-wcsnlen.o: ../../wcsnlen.c
- $(CC) $(SCC_CFLAGS) ../../wcsnlen.c -c
--- a/lib/c/vfprintf.c
+++ b/lib/c/vfprintf.c
@@ -343,7 +343,7 @@
case 's':
if (flags & LONG) {
ws = va_arg(va, wchar_t *);
- len = wcsnlen(ws, conv.prec);
+ /* len = wcsnlen(ws, conv.prec); */
goto wstrout;
} else {
s = va_arg(va, char *);
--- a/lib/c/wcsnlen.c
+++ /dev/null
@@ -1,10 +1,0 @@
-#include <stdio.h>
-#include <wchar.h>
-
-#undef wcsnlen
-
-size_t
-wcsnlen(const wchar_t *s, size_t maxlen)
-{
- return 0;
-}