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* strchr(const char* string, int c)
  4. {
  5.         do {
  6.                 if (*string == (char)c)
  7.                         return (char*)string;
  8.         } while (*string++);
  9.  
  10.     return NULL;
  11. }
  12.