Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - strpbrk http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 strpbrk

   Usage
   include <string.h>
   char *strpbrk(const char *string1,const char *string2);

   Description
   Finds  the first occurrence in string1 of any character from  string2.
   The terminating NULL is not included in the search.

   Example
   #include <stdio.h>
   #include <string.h>
   char *string2 = "Example string";

   main()
   {
        printf("\nstrnset Example [%s]\n", strnset(string2,'x',9));
        printf("\nstrpbrk Example [%s]\n",strpbrk(string2,"s"));
   }

   Return Value
   Returns a pointer to the first occurrence in string1 of any  character
   from string2, or NULL if no character from string2 exists in string1.


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson