Undefine __strnlen and strnlen.
authorJim Meyering <jim@meyering.net>
Sat, 6 May 2000 15:45:30 +0000 (15:45 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 6 May 2000 15:45:30 +0000 (15:45 +0000)
[!weak_alias]: Define __strnlen to strnlen.

lib/strnlen.c

index a2fcf73..89f8185 100644 (file)
 
 #include <string.h>
 
+#undef __strnlen
+#undef strnlen
+
+#ifndef weak_alias
+# define __strnlen strnlen
+#endif
+
 /* Find the length of STRING, but scan at most MAXLEN characters.
    If no '\0' terminator is found in that many characters, return MAXLEN.  */