1.\" $NetBSD: iswalnum.3,v 1.5 2002/07/10 14:46:10 yamt Exp $ 2.\" 3.\" Copyright (c) 1991 The Regents of the University of California. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to Berkeley by 7.\" the American National Standards Committee X3, on Information 8.\" Processing Systems. 9.\" 10.\" Redistribution and use in source and binary forms, with or without 11.\" modification, are permitted provided that the following conditions 12.\" are met: 13.\" 1. Redistributions of source code must retain the above copyright 14.\" notice, this list of conditions and the following disclaimer. 15.\" 2. Redistributions in binary form must reproduce the above copyright 16.\" notice, this list of conditions and the following disclaimer in the 17.\" documentation and/or other materials provided with the distribution. 18.\" 3. All advertising materials mentioning features or use of this software 19.\" must display the following acknowledgement: 20.\" This product includes software developed by the University of 21.\" California, Berkeley and its contributors. 22.\" 4. Neither the name of the University nor the names of its contributors 23.\" may be used to endorse or promote products derived from this software 24.\" without specific prior written permission. 25.\" 26.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 27.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 28.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 29.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 30.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36.\" SUCH DAMAGE. 37.\" 38.\" @(#)isalnum.3 5.2 (Berkeley) 6/29/91 39.\" $FreeBSD$ 40.\" 41.Dd December 22, 2000 42.Dt ISWALNUM 3 43.Os 44.Sh NAME 45.Nm iswalnum , 46.Nm iswalpha , 47.Nm iswascii , 48.Nm iswblank , 49.Nm iswcntrl , 50.Nm iswdigit , 51.Nm iswgraph , 52.Nm iswhexnumber , 53.Nm iswideogram , 54.Nm iswlower , 55.Nm iswnumber , 56.Nm iswphonogram , 57.Nm iswprint , 58.Nm iswpunct , 59.Nm iswrune , 60.Nm iswspace , 61.Nm iswspecial , 62.Nm iswupper , 63.Nm iswxdigit 64.Nd wide character classification utilities 65.Sh LIBRARY 66.Lb libc 67.Sh SYNOPSIS 68.In wctype.h 69.Ft int 70.Fn iswalnum "wint_t wc" 71.Ft int 72.Fn iswalpha "wint_t wc" 73.Ft int 74.Fn iswascii "wint_t wc" 75.Ft int 76.Fn iswblank "wint_t wc" 77.Ft int 78.Fn iswcntrl "wint_t wc" 79.Ft int 80.Fn iswdigit "wint_t wc" 81.Ft int 82.Fn iswgraph "wint_t wc" 83.Ft int 84.Fn iswhexnumber "wint_t wc" 85.Ft int 86.Fn iswideogram "wint_t wc" 87.Ft int 88.Fn iswlower "wint_t wc" 89.Ft int 90.Fn iswnumber "wint_t wc" 91.Ft int 92.Fn iswphonogram "wint_t wc" 93.Ft int 94.Fn iswprint "wint_t wc" 95.Ft int 96.Fn iswpunct "wint_t wc" 97.Ft int 98.Fn iswrune "wint_t wc" 99.Ft int 100.Fn iswspace "wint_t wc" 101.Ft int 102.Fn iswspecial "wint_t wc" 103.Ft int 104.Fn iswupper "wint_t wc" 105.Ft int 106.Fn iswxdigit "wint_t wc" 107.Sh DESCRIPTION 108The functions are character classification utility functions, 109for use with wide characters 110.Po 111.Fa wchar_t 112or 113.Fa wint_t 114.Pc . 115See description for singlebyte classification functions, like 116.Xr isalnum 3 , 117for details. 118.Sh RETURN VALUES 119The functions return zero if the character tests false and 120return non-zero if the character tests true. 121.Sh SEE ALSO 122.Xr isalnum 3 , 123.Xr isalpha 3 , 124.Xr isascii 3 , 125.Xr isblank 3 , 126.Xr iscntrl 3 , 127.Xr isdigit 3 , 128.Xr isgraph 3 , 129.Xr ishexnumber 3 , 130.Xr isideogram 3 , 131.Xr islower 3 , 132.Xr isnumber 3 , 133.Xr isphonogram 3 , 134.Xr isprint 3 , 135.Xr ispunct 3 , 136.Xr isrune 3 , 137.Xr isspace 3 , 138.Xr isspecial 3 , 139.Xr isupper 3 , 140.Xr isxdigit 3 , 141.Xr wctype 3 142.Sh STANDARDS 143These functions conform to 144.St -p1003.1-2001 , 145except 146.Fn iswascii , 147.Fn iswhexnumber , 148.Fn iswideogram , 149.Fn iswnumber , 150.Fn iswphonogram , 151.Fn iswrune 152and 153.Fn iswspecial , 154which are 155.Fx 156extensions. 157.Sh CAVEATS 158The argument to these functions must be WEOF or valid wchar_t 159value with current locale; otherwise, the result is undefined. 160