iswcntrl


iswcntrl

Ascertains whether a given wide character is a control character

 #include <wctype.h> int iswcntrl ( wint_t wc  ); 

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( )



C(c) In a Nutshell
C in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596006977
EAN: 2147483647
Year: 2006
Pages: 473

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net