summaryrefslogtreecommitdiff
path: root/libc/string/strpbrk.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/strpbrk.c')
-rw-r--r--libc/string/strpbrk.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/libc/string/strpbrk.c b/libc/string/strpbrk.c
index 7e6b1a4a2..fe2ec229d 100644
--- a/libc/string/strpbrk.c
+++ b/libc/string/strpbrk.c
@@ -7,15 +7,13 @@
/* This uses strchr, strchr should be in assembler */
-char *strpbrk(str, set)
-register const char *str;
-const char *set;
+char *strpbrk( const char *str, const char *set)
{
- while (*str != '\0')
- if (strchr(set, *str) == 0)
- ++str;
- else
- return (char *) str;
+ while (*str != '\0')
+ if (strchr(set, *str) == 0)
+ ++str;
+ else
+ return (char *) str;
- return 0;
+ return 0;
}