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 __iscsym( int c );

Description:
    The __iscsym function tests for a letter, underscore or digit.

Returns:
    A non-zero value is returned when the character is a letter, underscore
    or digit; otherwise, zero is returned.

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

    char chars[] = {
        'A',
        0x80,
        '_',
        '9',
        '+'
    };

    #define SIZE sizeof( chars ) / sizeof( char )

    void main()
      {
        int   i;

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

    produces the following:

    Char A is a C symbol character
    Char   is not a C symbol character
    Char _ is a C symbol character
    Char 9 is a C symbol character
    Char + is not a C symbol character

Classification:
    WATCOM

Systems:
    All, Netware

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

See Also:

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