Contents | Prev | Next

7.2.35 The isxdigit function

Description

The isxdigit function returns a value of type boolean, which indicates whether the parameter passed to it is a hexadecimal digit character (i.e. '0'..'9', and 'a'..'f', and 'A'..'F'). If the parameter is a hexadecimal digit character then the value true is returned, and if the parameter is not a hexadecimal digit character then the value false is returned.

Parameter

The isxdigit function's only parameter is an expression of char type.

Example

    isxdigit('a')  returns   true
    isxdigit('A')  returns   true
    isxdigit('h')  returns   false
    isxdigit('1')  returns   true
    isxdigit('@')  returns   false
    isxdigit('_')  returns   false

Portability

Operating Systems: All
Standard Pascal: No

Contents | Prev | Next