projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20d5510
)
Undefine __strnlen and strnlen.
author
Jim Meyering
<jim@meyering.net>
Sat, 6 May 2000 15:45:30 +0000
(15:45 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 6 May 2000 15:45:30 +0000
(15:45 +0000)
[!weak_alias]: Define __strnlen to strnlen.
lib/strnlen.c
patch
|
blob
|
history
diff --git
a/lib/strnlen.c
b/lib/strnlen.c
index a2fcf73d7969abe270a87f89b51c63b5dd8497a6..89f8185267e0f8f3254dd87ff32c5c05ffa916bb 100644
(file)
--- a/
lib/strnlen.c
+++ b/
lib/strnlen.c
@@
-19,6
+19,13
@@
#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. */