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

Description:
    The __iscsymf function tests for a letter or underscore.

Returns:
    A non-zero value is returned when the character is a letter or
    underscore; 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 csymf character\n",
                chars[i],
                ( __iscsymf( chars[i] ) ) ? "" : "not " );
        }
      }

    produces the following:

    Char A is a csymf character
    Char   is not a csymf character
    Char _ is a csymf character
    Char 9 is not a csymf character
    Char + is not a csymf 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