[Previous] [Contents] [Next]

iswpunct()

Test for any punctuation wide character

Synopsis:

#include <wctype.h>

int iswpunct( wint_t wc );

Library:

libc

Description:

The iswpunct() function tests if the argument wc is a punctuation wide character of the class punct. In the C locale, it includes comma (,) and period (.), among others.

Returns:

=/= 0
The character is a member of the class punct.
0
Everything else.

Classification:

ANSI

Safety:
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes

Caveats:

The result is valid only for char arguments and WEOF.

See also:

setlocale()

"Character manipulation functions" and "Wide-character functions" in the summary of functions chapter.


[Previous] [Contents] [Next]