Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
145 halyavin 1
extern int strncmp(char* s1,char* s2,int len);
2
char* strstr(const char* s, const char* find)
3
{
4
	int len;
5
	len=strlen(find);
6
	while (1)
7
	{
8
		if (strncmp(s,find,len)==0) return s;
9
		if (*s=='\0')
10
			return (char*) 0;
11
		s++;
12
	}
13
}