<cctype> C字符函数

来源:互联网 发布:linux命令源代码 编辑:程序博客网 时间:2024/05/16 04:59
Character handling functions
This header declares a set of functions to classify and transform individual characters.

Functions

These functions take the int equivalent of one character as parameter and return an int that can either be another character or a value representing a boolean value: an int value of 0 means false, and an int value different from 0 represents true.

There are two sets of functions:

Character classification functions

They check whether the character passed as parameter belongs to a certain category:


Character conversion functions

Two functions that convert between letter cases: