fixed some bugs, added LIST, Makefile & .distr

This commit is contained in:
eck
1989-12-18 16:02:55 +00:00
parent 8a409311da
commit dc2dd991c6
16 changed files with 93 additions and 29 deletions

View File

@@ -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;
}