Subversion Repositories Kolibri OS

Rev

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

  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. }
  14.