From dca0093028438de3c689757b755f64889eba9c32 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 19 May 1995 17:46:07 -0400 Subject: [PATCH] (strstr): Deleted. From-SVN: r9746 --- gcc/collect2.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/gcc/collect2.c b/gcc/collect2.c index c2a073e6ef7..cfc279088b8 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -363,30 +363,6 @@ my_strerror (e) return buffer; #endif } - -#ifndef POSIX -char * -strstr (s1, s2) - char *s1, *s2; -{ - register char *p = s1; - extern char *strchr (); - extern int strncmp (); -#if __GNUC__==2 - extern __SIZE_TYPE__ strlen (); -#endif - register int len = strlen (s2); - - for (; (p = strchr (p, *s2)) != 0; p++) - { - if (strncmp (p, s2, len) == 0) - { - return (p); - } - } - return (0); -} -#endif /* Delete tempfiles and exit function. */ -- 2.30.2