2016-05-19 14:15:22 +02:00
|
|
|
#include <string.h>
|
2016-04-30 15:50:04 +02:00
|
|
|
|
2006-09-07 16:14:53 +02:00
|
|
|
char* strstr(const char* s, const char* find)
|
|
|
|
{
|
|
|
|
int len;
|
|
|
|
len=strlen(find);
|
|
|
|
while (1)
|
|
|
|
{
|
2016-04-30 15:50:04 +02:00
|
|
|
if (strncmp(s,find,len)==0) return (char*)s;
|
2006-09-07 16:14:53 +02:00
|
|
|
if (*s=='\0')
|
|
|
|
return (char*) 0;
|
|
|
|
s++;
|
|
|
|
}
|
|
|
|
}
|