LabWindows/CVI

Content Type
Programming Language
Current manual

ispunct

ispunct

int ispunct (int testCharacter);

Purpose

Tests to see if a character is a punctuation character, which is any printable character that is neither whitespace nor alphanumeric. The input to this function must be a character with integer value between 0 and 255.

Parameters

Input
Name Type Description
testCharacter int Contains the character to be tested. The input must be a character with integer value between 0 and 255.

Return Value

Name Type Description
testResult int Contains the returned result of the test. The function returns a nonzero (true) integer value if the character being tested is a punctuation character. A punctuation character is a printable character that is neither whitespace nor alphanumeric.

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Example

Refer to userint\keyfiltr.cws for an example of using the ispunct function.

Was this information helpful?

Previous

isprint

Previous

isprint