iswdigit


iswdigit

Ascertains whether a given wide character is a decimal digit

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

The iswdigit( ) function is the wide-character version of the isdigit( ) character classification function. It tests whether its wide character argument corresponds to a digit character.

The results depend on the current locale setting for the localization category LC_CTYPE, which you can query or change using the setlocale( ) function. In the default locale C, the digit wide characters are L'0' (not to be confused with the null character L'\0') tHRough L'9'. The iswdigit( ) function returns a nonzero value (that is, true) if the wide character represents a digit; if not, it returns 0 (false).

Example

See the example for iswalpha( ) in this chapter.

See Also

The corresponding function for byte characters, isdigit( ); iswalnum( ), iswalpha( ), iswblank( ), iswcntrl( ), 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