diff options
Diffstat (limited to 'refer/deliv2.c')
-rw-r--r-- | refer/deliv2.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/refer/deliv2.c b/refer/deliv2.c index 4d1682b30454..ccfd994dc21a 100644 --- a/refer/deliv2.c +++ b/refer/deliv2.c @@ -49,23 +49,13 @@ err (const char *s, ...) exit(1); } -int -prefix(const char *t, const char *s) -{ - int c; - - while ((c= *t++) == *s++) - if (c==0) return(1); - return(c==0 ? 1: 0); -} - -char * +const char * mindex(const char *s, int c) { register const char *p; for( p=s; *p; p++) if (*p ==c) - return((char *)p); + return(p); return(0); } |