ch_istxt()

Checks if the character is a text character

Call  
#include <vv_sys.h>
int ch_istxt(ch)

UCHAR ch

Character to be checked

Returns  
1 The character is a text character
0 The character is not a text character
Description

If the character code is less than 128, the standard C library function isprint() is called to test the character.

If the character code is greater than 128 and support for the extended character set is not enabled, the character is considered non-text. If support for the extended character set is enabled (vv_extch.h is #included), the appropriate entry in the table _chsettbl[] is checked. If the entry is not a graphics character, it is considered a text character.

Cautions

If the extended character set support is disabled (the default), all characters above 127 are considered non-text.


Home Contents Previous Next