3.2.18. isprint

Checks if a character is printable.

Syntax:

int isprint (c)
int c;

where:

c

The character to be checked.

Description

This macro checks if a character is printable.

Return value

int

One of the following:

0

Character is not printable.

>0

Character is printable.

Example

define /R int chkPrint(myChar)
char myChar;
{
    if (isprint(myChar) > 0)
        $printf "printable character"$;
    else
        $printf "non-printable character"$;
}
.
cexpression chkPrint(0)

See also

Copyright © 2002-2009 ARM Limited. All rights reserved.ARM DUI 0175K
Non-Confidential