next contents previous
Next: dial (3C) Up: contents Previous: ctime (3C)





CTYPE(3C)               STANDARD C LIBRARY              CTYPE(3C)


NAME
     ctype:  isalpha,  isupper, islower, isdigit, isxdigit, isal-
     num, isspace, ispunct, isprint, isgraph, iscntrl, isascii --
     classify characters


SYNOPSIS
     #include <ctype.h>

     int isalpha(int c);

     int isupper(int c);

     int islower(int c);

     int isdigit(int c);

     int isxdigit(int c);

     int isalnum(int c);

     int isspace(int c);

     int ispunct(int c);

     int isprint(int c);

     int isgraph(int c);

     int iscntrl(int c);

     int isascii(int c);


DESCRIPTION
     These  macros  classify  character-coded  integer  values by
     table lookup.  Each is a  predicate  returning  nonzero  for
     true  and zero for false.  isascii is defined on all integer
     values; the rest are defined only where isascii is true  and
     on  the single, non-ASCII value EOF.  For -1, see stdio(3S).

        isalpha(c)     c is a letter.
        isupper(c)     c is an uppercase letter.
        islower(c)     c is a lowercase letter.
        isdigit(c)     c is a digit [0-9].
        isxdigit(c)    c is a hexadecimal digit [0-9], [A-F],  or
                       [a-f].
        isalnum(c)     c is an alphanumeric (letter or digit).
        isspace(c)     c  is a space, tab, return, new line, ver-
                       tical tab, or form feed.
        ispunct(c)     c is a punctuation character (neither con-
                       trol nor alphanumeric).
        isprint(c)     c   is  a  printing  character,  code  040
                       (space) through 0176 [tilde (~)].



SUPER-UX            Last change: Nov 18, 1996                   1





CTYPE(3C)               STANDARD C LIBRARY              CTYPE(3C)


        isgraph(c)     c is a printing character,  like  isprint,
                       except false for space.
        iscntrl(c)     c  is a delete character (0177) or control
                       character (less than 040).
        isascii(c)     c is an ASCII  character  code  less  than
                       0200.


SEE ALSO
     stdio(3S), ascii(5)


DIAGNOSTICS
     If  the argument to any of these macros is not the domain of
     the function, the result is undefined.










































SUPER-UX            Last change: Nov 18, 1996                   2




next contents previous
Next: dial (3C) Up: contents Previous: ctime (3C)

G1AB02E Programmer's Reference Manual