The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

isgraph - test for a visible character

 SYNOPSIS



#include <ctype.h>

int isgraph(int c);

 DESCRIPTION

The isgraph() function tests whether c is a character of class graph in the program's current locale, see the XBD specification, Locale .

In all cases c is an int, the value of which must be a character representable as an unsigned char or must equal the value of the macro EOF. If the argument has any other value, the behaviour is undefined.

 RETURN VALUE

The isgraph() function returns non-zero if c is a character with a visible representation; otherwise it returns 0.

 ERRORS

No errors are defined.

 EXAMPLES

None.

 APPLICATION USAGE

To ensure applications portability, especially across natural languages, only this function and those listed in the SEE ALSO section should be used for character classification.

 FUTURE DIRECTIONS

None.

 SEE ALSO

isalnum(), isalpha(), iscntrl(), isdigit(), islower(), isprint(), ispunct(), isspace(), isupper(), isxdigit(), setlocale(), <ctype.h>, the XBD specification, Locale .

DERIVATION

Derived from Issue 1 of the SVID.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]