Contents | Prev | Next

7.2.28 The isalphanum function

Description

The isalphanum function returns a value of type boolean, which indicates whether the parameter passed to it is an alphanumeric character (i.e. an alphabetic character or a digit). If the parameter is an alphanumeric character then the value true is returned, and if the parameter is not an alphanumeric character then the value false is returned.

Parameter

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

Example

    isalphanum('a')  returns   true
    isalphanum('A')  returns   true
    isalphanum('1')  returns   true
    isalphanum('@')  returns   false
    isalphanum('_')  returns   false

Portability

Operating Systems: All
Standard Pascal: No

Contents | Prev | Next