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++ 3.0r4 - <b>strpbrk</b> 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);

   ANSI

Description

   Finds the first occurrence in string1 of any character from string2. The
   terminating '\0' is not included in the search.

Example 

   #include <stdio.h>
   #include <string.h>
   #include <stdlib.h>

   char *string2 = "Example string";

   int main()
   {

       printf("\nstrnset Example   [%s]\n",
               strnset(string2,'x',8));
       printf("\nstrpbrk Example [%s]\n",
               strpbrk(string2,"s"));
       return EXIT_SUCCESS;
   }

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