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 Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <string.h>
    char *strspnp( const char *str,
                   const char *charset );
    char *_strspnp( const char *str,
                    const char *charset );
    char __far *_fstrspnp( const char __far *str,
                           const char __far *charset );
    #include <tchar.h>
    wchar_t *_wcsspnp( const wchar_t *str,
                       const wchar_t *charset );
    #include <mbstring.h>
    unsigned char *_mbsspnp( const unsigned char *str,
                             const unsigned char *charset );
    unsigned char __far *_fmbsspnp(
                        const unsigned char __far *str,
                        const unsigned char __far *charset );

Description:
    The strspnp function returns a pointer to the first character in str
    that does not belong to the set of characters in charset.  The
    terminating null character is not considered to be part of charset.

    The _strspnp function is identical to strspnp.  Use _strspnp for
    ANSI/ISO naming conventions.

    The _fstrspnp function is a data model independent form of the strspnp
    function that accepts far pointer arguments.  It is most useful in mixed
    memory model applications.

    The _wcsspnp function is a wide-character version of strspnp that
    operates with wide-character strings.

    The _mbsspnp function is a multibyte character version of strspnp that
    operates with multibyte character strings.

    The _fmbsspnp function is a data model independent form of the _mbsspnp
    function that accepts far pointer arguments.  It is most useful in mixed
    memory model applications.

Returns:
    The strspnp function returns NULL if str consists entirely of characters
    from charset.

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

    void main()
      {
        printf( "%s\n", strspnp( "out to lunch", "aeiou" ) );
        printf( "%s\n", strspnp( "out to lunch", "xyz" ) );
      }

    produces the following:

    t to lunch
    out to lunch

Classification:
    WATCOM

_strspnp conforms to ANSI/ISO naming conventions

Systems:
     strspnp - All, Netware

    _strspnp - All, Netware
    _fstrspnp - All
    _wcsspnp - All
    _mbsspnp - DOS, Windows, Win386, Win32, OS/2 1.x(all), OS/2-32
    _fmbsspnp - DOS, Windows, Win386, Win32, OS/2 1.x(all), OS/2-32

See Also:
    strcspn, strspn

See Also:

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