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 isalpha( int c );
    #include <wchar.h>
    int iswalpha( wint_ c );

Description:
    The isalpha function tests if the argument c is an alphabetic character
    ('a' to 'z' and 'A' to 'Z').  An alphabetic character is any character
    for which  isupper or  islower is true.

    The iswalpha function is similar to isalpha except that it accepts a
    wide-character argument.

Returns:
    The isalpha function returns zero if the argument is not an alphabetic
    character (A-Z or a-z); otherwise, a non-zero value is returned.  The
    iswalpha function returns a non-zero value only for wide characters for
    which  iswupper or  iswlower is true, or any wide character that is one
    of an implementation-defined set for which none of  iswcntrl,  iswdigit,
     iswpunct, or  iswspace is true.

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

    void main()
      {
        if( isalpha( getchar() ) ) {
          printf( "is alphabetic\n" );
        }
      }

Classification:
    isalpha is ANSI, iswalpha is ANSI

Systems:
     isalpha - All, Netware

    iswalpha - All, Netware

See Also:
    isalnum, 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