OAR

RTEMS GNU Tools On-Line Library


Ctype

PREV UP NEXT Bookshelf

Chapter 2: Character Type Macros and Functions (`ctype.h')

This chapter groups macros (which are also available as subroutines) to classify characters into several categories (alphabetic, numeric, control characters, whitespace, and so on), or to perform simple character mappings.

The header file `ctype.h' defines the macros.

  • isalnum Alphanumeric character predicate
  • isalpha Alphabetic character predicate
  • isascii ASCII character predicate
  • iscntrl Control character predicate
  • isdigit Decimal digit predicate
  • islower Lower-case character predicate
  • isprint Printable character predicates (isprint, isgraph)
  • ispunct Punctuation character predicate
  • isspace Whitespace character predicate
  • isupper Uppercase character predicate
  • isxdigit Hexadecimal digit predicate
  • toascii Force integers to ASCII range
  • tolower Translate characters to lower case
  • toupper Translate characters to upper case

  • PREV UP NEXT Bookshelf

    Packaging copyright © 1988-2000 OAR Corporation
    Context copyright by each document's author. See Free Software Foundation for information.