fixed some bugs, added LIST, Makefile & .distr
This commit is contained in:
@@ -11,8 +11,9 @@ strstr(register const char *s, register const char *wanted)
|
||||
{
|
||||
int len = strlen(wanted);
|
||||
|
||||
if (len == 0) return (char *)s;
|
||||
while (*s != *wanted || strncmp(s, wanted, len))
|
||||
if (*s++ == '\0')
|
||||
return (char *)NULL;
|
||||
return s;
|
||||
return (char *)s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user