home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / pippy-0.6beta-src.tar.gz / pippy-0.6beta-src.tar / pippy-0.6beta-src / src / Palm / libc / strpbrk.c < prev    next >
C/C++ Source or Header  |  2000-12-21  |  410b  |  26 lines

  1. /*
  2.  *  linux/lib/string.c
  3.  *
  4.  *  Copyright (C) 1991, 1992  Linus Torvalds
  5.  */
  6.  
  7. #include <sys/types.h>
  8. #include <string.h>
  9. #include <ctype.h>
  10.  
  11. #ifndef __HAVE_ARCH_STRPBRK
  12. char * strpbrk(const char * cs,const char * ct)
  13. {
  14.   const char *sc1,*sc2;
  15.   
  16.   for( sc1 = cs; *sc1 != '\0'; ++sc1) {
  17.     for( sc2 = ct; *sc2 != '\0'; ++sc2) {
  18.       if (*sc1 == *sc2)
  19.     return (char *) sc1;
  20.     }
  21.   }
  22.   return NULL;
  23. }
  24. #endif
  25.  
  26.