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 <ctype.h>
    int isxdigit( int c );
    #include <wchar.h>
    int iswxdigit( wint_t c );

Description:
    The isxdigit function tests for any hexadecimal-digit character.  These
    characters are the digits ('0' through '9') and the letters ('a' through
    'f') and ('A' through 'F').

    The iswxdigit function is similar to isxdigit except that it accepts a
    wide-character argument.

Returns:
    The isxdigit function returns a non-zero value when the argument is a
    hexadecimal-digit character.  The iswxdigit function returns a non-zero
    value when the argument is a wide character that corresponds to a
    hexadecimal-digit character.  Otherwise, zero is returned.

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

    char chars[] = {
        'A',
        '5',
        '$'
    };
     .exmp break
    #define SIZE sizeof( chars ) / sizeof( char )

    void main()
      {
        int   i;

        for( i = 0; i < SIZE; i++ ) {
          printf( "Char %c is %sa hexadecimal digit"
                " character\n", chars[i],
                ( isxdigit( chars[i] ) ) ? "" : "not " );
        }
      }

    produces the following:

    Char A is a hexadecimal digit character
    Char 5 is a hexadecimal digit character
    Char $ is not a hexadecimal digit character

Classification:
    isxdigit is ANSI, iswxdigit is ANSI

Systems:
     isxdigit - All, Netware

    iswxdigit - All, Netware

See Also:
    isalnum, isalpha, iscntrl, isdigit, isgraph, isleadbyte, islower,
    isprint, ispunct, isspace, isupper, iswctype, tolower, toupper

See Also: isleadbyte iswctype

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