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 isalnum( int c );
    #include <wchar.h>
    int iswalnum( wint_t c );

Description:
    The isalnum function tests if the argument c is an alphanumeric
    character ('a' to 'z', 'A' to 'Z', or '0' to '9').  An alphanumeric
    character is any character for which  isalpha or  isdigit is true.

    The iswalnum function is similar to isalnum except that it accepts a
    wide-character argument.

Returns:
    The isalnum function returns zero if the argument is neither an
    alphabetic character (A-Z or a-z) nor a digit (0-9).  Otherwise, a
    non-zero value is returned.  The iswalnum function returns a non-zero
    value if either  iswalpha or  iswdigit is true for c.

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

    void main()
      {
        if( isalnum( getchar() ) ) {
          printf( "is alpha-numeric\n" );
        }
      }

Classification:
    isalnum is ANSI, iswalnum is ANSI

Systems:
     isalnum - All, Netware

    iswalnum - All, Netware

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

See Also: isleadbyte iswctype

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