summaryrefslogtreecommitdiff
path: root/libc/string/generic/strcspn.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/generic/strcspn.c')
-rw-r--r--libc/string/generic/strcspn.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libc/string/generic/strcspn.c b/libc/string/generic/strcspn.c
index a06577bca..7fa49a0dc 100644
--- a/libc/string/generic/strcspn.c
+++ b/libc/string/generic/strcspn.c
@@ -18,19 +18,21 @@
#include <string.h>
+libc_hidden_proto(strchr)
+
/* Return the length of the maximum initial segment of S
which contains no characters from REJECT. */
-size_t attribute_hidden __strcspn (const char *s, const char *reject)
+size_t strcspn (const char *s, const char *reject)
{
size_t count = 0;
while (*s != '\0')
- if (__strchr (reject, *s++) == NULL)
+ if (strchr (reject, *s++) == NULL)
++count;
else
return count;
return count;
}
-
-strong_alias(__strcspn,strcspn)
+libc_hidden_proto(strcspn)
+libc_hidden_def(strcspn)