bugfixing

git-svn-id: svn://kolibrios.org@6412 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
siemargl
2016-04-30 13:50:04 +00:00
parent 2b5de6aa60
commit 9bafc8aa7b
23 changed files with 242 additions and 106 deletions

View File

@@ -1,11 +1,12 @@
extern int strncmp(char* s1,char* s2,int len);
#include<string.h>
char* strstr(const char* s, const char* find)
{
int len;
len=strlen(find);
while (1)
{
if (strncmp(s,find,len)==0) return s;
if (strncmp(s,find,len)==0) return (char*)s;
if (*s=='\0')
return (char*) 0;
s++;