Subversion Repositories Kolibri OS

Rev

Rev 8793 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
  2. #include "unconst.h"
  3. #include <string.h>
  4.  
  5. char* strpbrk(const char* s1, const char* s2)
  6. {
  7.     const char* scanp;
  8.     int c, sc;
  9.  
  10.     while ((c = *s1++) != 0) {
  11.         for (scanp = s2; (sc = *scanp++) != 0;)
  12.             if (sc == c)
  13.                 return unconst(s1 - 1, char*);
  14.     }
  15.     return 0;
  16. }
  17.