Character Testing
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ Function │ Header File │ Link to Function │ Descriptio│
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ "isalnum" │ "ctype.h" │ isalnum
to isxdigit │ Tests for │
│ │ │ │ alphanu- │
│ │ │ │ meric │
│ │ │ │ charac- │
│ │ │ │ ters. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ "isalpha" │ "ctype.h" │ isalnum
to isxdigit │ Tests for │
│ │ │ │ alpha- │
│ │ │ │ betic │
│ │ │ │ charac- │
│ │ │ │ ters. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ isascii │ "ctype.h" │ isascii
│ Tests if │
│ │ │ │ an │
│ │ │ │ integer │
│ │ │ │ is within │
│ │ │ │ the ASCII │
│ │ │ │ range. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ "iscntrl" │ "ctype.h" │ isalnum
to isxdigit │ Tests for │
│ │ │ │ control │
│ │ │ │ charac- │
│ │ │ │ ters. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _iscsym │ "ctype.h" │ _iscsym
- _iscsymf │ Tests if │
│ │ │ │ a char- │
│ │ │ │ acter is │
│ │ │ │ alpha- │
│ │ │ │ betic or │
│ │ │ │ an under- │
│ │ │ │ score. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ _iscsymf │ "ctype.h" │ _iscsym
- _iscsymf │ Tests if │
│ │ │ │ a char- │
│ │ │ │ acter is │
│ │ │ │ alpha- │
│ │ │ │ betic, a │
│ │ │ │ digit, or │
│ │ │ │ an under- │
│ │ │ │ score. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ "isdigit" │ "ctype.h" │ isalnum
to isxdigit │ Tests for │
│ │ │ │ decimal │
│ │ │ │ digits. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ "isgraph" │ "ctype.h" │ isalnum
to isxdigit │ Tests for │
│ │ │ │ printable │
│ │ │ │ charac- │
│ │ │ │ ters │
│ │ │ │ excluding │
│ │ │ │ the │
│ │ │ │ space. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ "islower" │ "ctype.h" │ isalnum
to isxdigit │ Tests for │
│ │ │ │ lowercase │
│ │ │ │ letters. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ "isprint" │ "ctype.h" │ isalnum
to isxdigit │ Tests for │
│ │ │ │ printable │
│ │ │ │ charac- │
│ │ │ │ ters │
│ │ │ │ including │
│ │ │ │ the │
│ │ │ │ space. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ "ispunct" │ "ctype.h" │ isalnum
to isxdigit │ Tests for │
│ │ │ │ printable │
│ │ │ │ charac- │
│ │ │ │ ters │
│ │ │ │ excluding │
│ │ │ │ the │
│ │ │ │ space. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ "isspace" │ "ctype.h" │ isalnum
to isxdigit │ Tests for │
│ │ │ │ white- │
│ │ │ │ space │
│ │ │ │ charac- │
│ │ │ │ ters. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ "isupper" │ "ctype.h" │ isalnum
to isxdigit │ Tests for │
│ │ │ │ uppercase │
│ │ │ │ letters. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ iswalnum │ "wctype.h" │ iswalnum
to iswxdigit │ Tests for │
│ │ │ │ alphanu- │
│ │ │ │ meric │
│ │ │ │ wide │
│ │ │ │ charac- │
│ │ │ │ ters. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ iswalpha │ "wctype.h" │ iswalnum
to iswxdigit │ Tests for │
│ │ │ │ alpha- │
│ │ │ │ betic │
│ │ │ │ wide │
│ │ │ │ charac- │
│ │ │ │ ters. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ iswctype │ "wctype.h" │ iswctype
│ Tests a │
│ │ │ │ wide │
│ │ │ │ character │
│ │ │ │ for a │
│ │ │ │ specified │
│ │ │ │ property. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ iswdigit │ "wctype.h" │ iswalnum
to iswxdigit │ Tests │
│ │ │ │ wide │
│ │ │ │ charac- │
│ │ │ │ ters for │
│ │ │ │ decimal │
│ │ │ │ digits. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ iswgraph │ "wctype.h" │ iswalnum
to iswxdigit │ Tests for │
│ │ │ │ printable │
│ │ │ │ wide │
│ │ │ │ charac- │
│ │ │ │ ters │
│ │ │ │ excluding │
│ │ │ │ the │
│ │ │ │ space. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ iswlower │ "wctype.h" │ iswalnum
to iswxdigit │ Tests │
│ │ │ │ wide │
│ │ │ │ charac- │
│ │ │ │ ters for │
│ │ │ │ lowercase │
│ │ │ │ letters. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ iswprint │ "wctype.h" │ iswalnum
to iswxdigit │ Tests for │
│ │ │ │ printable │
│ │ │ │ wide │
│ │ │ │ charac- │
│ │ │ │ ters │
│ │ │ │ including │
│ │ │ │ the │
│ │ │ │ space. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ iswpunct │ "wctype.h" │ iswalnum
to iswxdigit │ Tests for │
│ │ │ │ printable │
│ │ │ │ wide │
│ │ │ │ charac- │
│ │ │ │ ters │
│ │ │ │ excluding │
│ │ │ │ the │
│ │ │ │ space. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ iswspace │ "wctype.h" │ iswalnum
to iswxdigit │ Tests for │
│ │ │ │ white- │
│ │ │ │ space │
│ │ │ │ wide │
│ │ │ │ charac- │
│ │ │ │ ters. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ iswupper │ "wctype.h" │ iswalnum
to iswxdigit │ Tests │
│ │ │ │ wide │
│ │ │ │ charac- │
│ │ │ │ ters for │
│ │ │ │ uppercase │
│ │ │ │ letters. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ "isxdigit" │ "ctype.h" │ isalnum
to isxdigit │ Tests for │
│ │ │ │ hexadecima│
│ │ │ │ digits. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ iswxdigit │ "wctype.h" │ iswalnum
to iswxdigit │ Tests │
│ │ │ │ wide │
│ │ │ │ charac- │
│ │ │ │ ters for │
│ │ │ │ hexadecima│
│ │ │ │ digits. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcwidth │ "wchar.h" │ wcwidth
│ Deter- │
│ │ │ │ mines │
│ │ │ │ number of │
│ │ │ │ display │
│ │ │ │ positions │
│ │ │ │ required │
│ │ │ │ to │
│ │ │ │ display a │
│ │ │ │ given │
│ │ │ │ wide │
│ │ │ │ char- │
│ │ │ │ acter. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
[Back: String Operations]
[Next: Character Case Mapping]