Name
iswcntrl
Synopsis
Ascertains whether a given wide character is a control character
#include <wctype.h> intiswcntrl( wint_twc);
The iswcntrl() function is
the wide-character version of the iscntrl() character classification
function. It tests whether its wide character argument is a control
character. If the argument is a control character, iswcntrl() returns a nonzero value (that
is, true); if not, the function
returns 0 (false).
The function may yield different results depending on the
current locale setting for the localization category LC_CTYPE, which you can query or change
using the setlocale()
function.
Example
See the example for iswalpha() in this
chapter.
See Also
The corresponding function for byte characters, iscntrl(); iswalnum(), iswalpha(), iswblank(), iswdigit(), iswgraph(), iswlower(), iswprint(), iswpunct(), iswspace(), iswupper(), iswxdigit(), setlocale(); the
extensible wide-character classification function, iswctype()
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access