3.2.19. isspace

Checks if a character is a space.

Syntax:

int isspace (c)
int c;

where:

c

The character to be checked.

Description

This macro checks if a character is a space.

Return value

int

One of the following:

0

Character is not a space.

>0

Character is a space.

Example

define /R int chkSpace(myChar)
char myChar;
{
    if (isspace(myChar) > 0)
        $printf "space character"$;
    else
        $printf "non-space character"$;
}
.
cexpression chkSpace(' ')

See also

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