diff options
Diffstat (limited to 'missing/strchr.c')
-rw-r--r-- | missing/strchr.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/missing/strchr.c b/missing/strchr.c deleted file mode 100644 index 82f3cc96b0..0000000000 --- a/missing/strchr.c +++ /dev/null @@ -1,30 +0,0 @@ -/* public domain rewrite of strchr(3) and strrchr(3) */ - -char * -strchr(s, c) - char *s; - int c; -{ - if (c == 0) return s + strlen(s); - while (*s) { - if (*s == c) - return s; - s++; - } - return 0; -} - -char * -strrchr(s, c) - char *s; - int c; -{ - char *save = 0; - - while (*s) { - if (*s == c) - save = s; - s++; - } - return save; -} |