parent
6536dfcbac
commit
dca0093028
|
@ -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. */
|
||||
|
||||
|
|
Loading…
Reference in New Issue