Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C programming/wctype.h/iswdigit

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

iswdigit is a function in included in the C Standard Library header wctype.h. It checks if a wide character is a decimal digit in the current locale (always includes '0' to '9'). The iswdigit function is a wide charactered version of isdigit function. Syntax int iswdigit(wint_t wc); Return value The iswdigit function return non zero value if its argument is a digit between 0 to 9. In other cases, a zero value because of its independent working. Example #include <stdio.h> #include <wctype.h> int main(void) { for (unsigned i = 0; i < 0xff; i++) { printf("%x, %s\n", i, iswdigit(i) ? "digit" : "not a digit"); } return 0; } References http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswdigit.html http://msdn.microsoft.com/en-us/library/fcc4ksh8%28v=VS.90%29.aspx http://www.freebsd.org/cgi/man.cgi?query=iswdigit&apropos=0&sektion=0&manpath=FreeBSD+7.1-RELEASE&arch=default&format=html deep