Subversion Repositories Kolibri OS

Rev

Rev 6412 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #include <string.h>
  2.  
  3. char* strstr(const char* s, const char* find)
  4. {
  5.         int len;
  6.         len=strlen(find);
  7.         while (1)
  8.         {
  9.                 if (strncmp(s,find,len)==0) return (char*)s;
  10.                 if (*s=='\0')
  11.                         return (char*) 0;
  12.                 s++;
  13.         }
  14. }
  15.