Subversion Repositories Kolibri OS

Rev

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

  1. #include <string.h>
  2.  
  3. char* strrchr(const char* s,int c)
  4. {
  5.         char* res;
  6.         res=(char*)0;
  7.         while (1)
  8.         {
  9.                 if (*s==(char)c)
  10.                         res=(char*)s;
  11.                 if (*s=='\0')
  12.                         break;
  13.                 s++;
  14.         }
  15.         return res;
  16. }
  17.