Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #905
Difficulty: Easy
Generally speaking, Unix systems are commercial, closed source and propriety operating systems so it is expensive to customize for supercomputing projects. Linux, on the other hand, is free and easier to customize.
True or False?
Linux & Unix Commands - Search Man Pages

iswctype(3) [bsd man page]

ISWCTYPE(3)						     Linux Programmer's Manual						       ISWCTYPE(3)

NAME
iswctype - wide-character classification SYNOPSIS
#include <wctype.h> int iswctype(wint_t wc, wctype_t desc); DESCRIPTION
If wc is a wide character having the character property designated by desc (or in other words: belongs to the character class designated by desc), the iswctype() function returns nonzero. Otherwise, it returns zero. If wc is WEOF, zero is returned. desc must be a character property descriptor returned by the wctype(3) function. RETURN VALUE
The iswctype() function returns nonzero if the wc has the designated property. Otherwise, it returns 0. ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). +-----------+---------------+---------+ |Interface | Attribute | Value | +-----------+---------------+---------+ |iswctype() | Thread safety | MT-Safe | +-----------+---------------+---------+ CONFORMING TO
POSIX.1-2001, POSIX.1-2008, C99. NOTES
The behavior of iswctype() depends on the LC_CTYPE category of the current locale. SEE ALSO
iswalnum(3), iswalpha(3), iswblank(3), iswcntrl(3), iswdigit(3), iswgraph(3), iswlower(3), iswprint(3), iswpunct(3), iswspace(3), iswup- per(3), iswxdigit(3), wctype(3) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. GNU
2015-08-08 ISWCTYPE(3)

Check Out this Related Man Page

ISWCTYPE(3P)						     POSIX Programmer's Manual						      ISWCTYPE(3P)

PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the correspond- ing Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME
iswctype - test character for a specified class SYNOPSIS
#include <wctype.h> int iswctype(wint_t wc, wctype_t charclass); DESCRIPTION
The iswctype() function shall determine whether the wide-character code wc has the character class charclass, returning true or false. The iswctype() function is defined on WEOF and wide-character codes corresponding to the valid character encodings in the current locale. If the wc argument is not in the domain of the function, the result is undefined. If the value of charclass is invalid (that is, not obtained by a call to wctype() or charclass is invalidated by a subsequent call to setlocale() that has affected category LC_CTYPE ) the result is unspecified. RETURN VALUE
The iswctype() function shall return non-zero (true) if and only if wc has the property described by charclass. If charclass is 0, iswc- type() shall return 0. ERRORS
No errors are defined. The following sections are informative. EXAMPLES
Testing for a Valid Character #include <wctype.h> ... int yes_or_no; wint_t wc; wctype_t valid_class; ... if ((valid_class=wctype("vowel")) == (wctype_t)0) /* Invalid character class. */ yes_or_no=iswctype(wc,valid_class); APPLICATION USAGE
The twelve strings "alnum", "alpha", "blank", "cntrl", "digit", "graph", "lower", "print", "punct", "space", "upper", and "xdigit" are reserved for the standard character classes. In the table below, the functions in the left column are equivalent to the functions in the right column. iswalnum(wc) iswctype(wc, wctype("alnum")) iswalpha(wc) iswctype(wc, wctype("alpha")) iswblank(wc) iswctype(wc, wctype("blank")) iswcntrl(wc) iswctype(wc, wctype("cntrl")) iswdigit(wc) iswctype(wc, wctype("digit")) iswgraph(wc) iswctype(wc, wctype("graph")) iswlower(wc) iswctype(wc, wctype("lower")) iswprint(wc) iswctype(wc, wctype("print")) iswpunct(wc) iswctype(wc, wctype("punct")) iswspace(wc) iswctype(wc, wctype("space")) iswupper(wc) iswctype(wc, wctype("upper")) iswxdigit(wc) iswctype(wc, wctype("xdigit")) RATIONALE
None. FUTURE DIRECTIONS
None. SEE ALSO
iswalnum(), iswalpha(), iswcntrl(), iswdigit(), iswgraph(), iswlower(), iswprint(), iswpunct(), iswspace(), iswupper(), iswxdigit(), setlo- cale(), wctype(), the Base Definitions volume of IEEE Std 1003.1-2001, <wchar.h>, <wctype.h> COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol- ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html . IEEE
/The Open Group 2003 ISWCTYPE(3P)

Featured Tech Videos