mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
26 lines
454 B
Plaintext
26 lines
454 B
Plaintext
--- ../rary/String.c.orig Sun Mar 31 19:39:46 2002
|
|
+++ ../rary/String.c Sun Mar 31 19:40:03 2002
|
|
@@ -72,22 +72,6 @@
|
|
return strncasecmp(a,b,n) == 0;
|
|
}
|
|
|
|
-char *
|
|
-strcasestr(s1,s2)
|
|
- char *s1,*s2;
|
|
-{ char *p1;
|
|
- int len;
|
|
-
|
|
- if( *s2 == 0 )
|
|
- return s1;
|
|
-
|
|
- len = strlen(s2);
|
|
- for( p1 = s1; *p1; p1 ++ )
|
|
- if( toupper(*p1) == toupper(*s2) )
|
|
- if( strncasecmp(p1,s2,len)==0 )
|
|
- return p1;
|
|
- return 0;
|
|
-}
|
|
char *strtoupper(s1,s2)
|
|
char *s1,*s2;
|
|
{
|