Contents | Prev | Next

7.2.32 The isprint function

Description

The isprint function returns a value of type boolean, which indicates whether the parameter passed to it is a printable character. If the parameter is a printable character then the value true is returned, and if the parameter is not a printable character then the value false is returned.

Parameter

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

Example

   isprint('A')     returns   true
   isprint('3')     returns   true
   isprint('+')     returns   true
   isprint(' ')     returns   true
   isprint(chr(10)) returns   false
   isprint(chr(8)) returns    false

Portability

Operating Systems: All
Standard Pascal: No

Contents | Prev | Next