Ctype.h


  • It contains the declarations,functions,constants of strings.
  • It is widely used for performing string operations.
  • Character Functions

    Function NameDescriptionReturn
    isalphaIt tests the given character, whether it is an alphabet (A to Z or a to z). Integer
    islowerIt test the given character, whether it is a lower case character(a to z) or not. Integer
    isupperIt test the given character, whether it is an upper case character (A to Z)Integer
    tolowerIf the character is an uppercase character (A to Z), then it is converted to lowercase (a to z) character. Integer
    toupperIf the character is a lowercase character (a to z), then it is converted to uppercase (A to Z) character. Integer

    Number Functions

    Function NameDescriptionReturn
    isalnumIt test the given character, whether it is an alphabet (A to Z or a to z) or a digit (0 to 9)Integer
    isdigitIt test the given character, whether it is a digit (0 to 9).Integer
    isxdigitIt test the given character, whether it is a hexadecimal digit (0 to 9,A to F or a to f) Integer

    Control Functions

    Function NameDescriptionReturn
    isgraphIt test the given character, whether it is any printing character except for the space character (0x21 to 0x7E)Integer
    isprintIt test the given character, whether it is any printing character (0x20 to 0x7E)Integer

    iscntrl
    It test the given character, whether it is any control character (0x00 to 0x1F or 0x7F) Integer
    ispunctIt test the given character, whether it is any punctuation character (any printing character except for space character or isalnum) Integer
    isblankIt test the given character, whether it is a blank character (space and horizontal tab). Integer
    isspaceIt test the given character, whether it is a white space character (space,tab,carriage return,new line,vertical tab,or formfeed) Integer