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.\" 40.Dd December 22, 2000 41.Dt ISWALNUM 3 42.Os 43.Sh NAME 44.Nm iswalnum , 45.Nm iswalpha , 46.Nm iswblank , 47.Nm iswcntrl , 48.Nm iswdigit , 49.Nm iswgraph , 50.Nm iswlower , 51.Nm iswprint , 52.Nm iswpunct , 53.Nm iswspace , 54.Nm iswupper , 55.Nm iswxdigit 56.Nd wide character classification utilities 57.Sh LIBRARY 58.Lb libc 59.Sh SYNOPSIS 60.Fd #include \*[Lt]wctype.h\*[Gt] 61.Ft int 62.Fn iswalnum "wint_t wc" 63.Ft int 64.Fn iswalpha "wint_t wc" 65.Ft int 66.Fn iswblank "wint_t wc" 67.Ft int 68.Fn iswcntrl "wint_t wc" 69.Ft int 70.Fn iswdigit "wint_t wc" 71.Ft int 72.Fn iswgraph "wint_t wc" 73.Ft int 74.Fn iswlower "wint_t wc" 75.Ft int 76.Fn iswprint "wint_t wc" 77.Ft int 78.Fn iswpunct "wint_t wc" 79.Ft int 80.Fn iswspace "wint_t wc" 81.Ft int 82.Fn iswupper "wint_t wc" 83.Ft int 84.Fn iswxdigit "wint_t wc" 85.Sh DESCRIPTION 86The functions are character classification utility functions, 87for use with wide characters 88.Po 89.Fa wchar_t 90or 91.Fa wint_t 92.Pc . 93See description for singlebyte classification functions, like 94.Xr isalnum 3 , 95for details. 96.Sh RETURN VALUES 97The functions return zero if the character tests false and 98return non-zero if the character tests true. 99.Sh SEE ALSO 100.Xr isalnum 3 , 101.Xr isalpha 3 , 102.Xr isblank 3 , 103.Xr iscntrl 3 , 104.Xr isdigit 3 , 105.Xr isgraph 3 , 106.Xr islower 3 , 107.Xr isprint 3 , 108.Xr ispunct 3 , 109.Xr isspace 3 , 110.Xr isupper 3 , 111.Xr isxdigit 3 112.Sh STANDARDS 113The functions conform to 114.St -isoC99 . 115.Sh CAVEATS 116The argument to these functions must be WEOF or valid wchar_t 117value with current locale; otherwise, the result is undefined. 118