Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <string.h>
    char *strpbrk( const char *str, const char *charset );
    char __far *_fstrpbrk( const char __far *str,
                           const char __far *charset );

Description:
    The strpbrk and _fstrpbrk functions locate the first occurrence in the
    string pointed to by str of any character from the string pointed to by
    charset.

    The _fstrpbrk function is a data model independent form of the strpbrk
    function.  It accepts far pointer arguments and returns a far pointer.
     It is most useful in mixed memory model applications.

Returns:
    The strpbrk and _fstrpbrk functions return a pointer to the located
    character, or NULL if no character from charset occurs in str.

See Also:
    strchr, _fstrchr, strrchr, _fstrrchr, strtok, _fstrtok

Example:
    #include <stdio.h>
    #include <string.h>

    void main()
      {
        char *p = "Find all vowels";

        while( p != NULL ) {
          printf( "%s\n", p );
          p = strpbrk( p+1, "aeiouAEIOU" );
        }
      }

    produces the following:

    Find all vowels
    ind all vowels
    all vowels
    owels
    els

Classification:
    strpbrk is ANSI, _fstrpbrk is not ANSI

Systems:
     strpbrk - All

    _fstrpbrk - All

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