Rev 6412 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6433 | siemargl | 1 | #include |
6412 | siemargl | 2 | |
145 | halyavin | 3 | char* strstr(const char* s, const char* find) |
4 | { |
||
5 | int len; |
||
6 | len=strlen(find); |
||
7 | while (1) |
||
8 | { |
||
6412 | siemargl | 9 | if (strncmp(s,find,len)==0) return (char*)s; |
145 | halyavin | 10 | if (*s=='\0') |
11 | return (char*) 0; |
||
12 | s++; |
||
13 | } |
||
14 | } |