summaryrefslogtreecommitdiff
path: root/libc/string/strpbrk.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-07 23:37:03 +0000
committerEric Andersen <andersen@codepoet.org>2000-10-07 23:37:03 +0000
commitfbb4007ac88656122f9319dea4563a3a4fd40e82 (patch)
treeca4265ac43d139b3fd02ba32bfe6d5e12cadb65c /libc/string/strpbrk.c
parentb8f03a94957c913fa0d8588c41b0332b49310ff0 (diff)
Update and simplification.
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;
}