xref: /netbsd-src/lib/libc/locale/iswalnum.3 (revision cef0afe940dedba57f5f0eb8f805f4f56ffe126b)
1*cef0afe9Swiz.\"	$NetBSD: iswalnum.3,v 1.9 2004/01/24 16:58:54 wiz Exp $
22ea45fbcSitojun.\"
32ea45fbcSitojun.\" Copyright (c) 1991 The Regents of the University of California.
42ea45fbcSitojun.\" All rights reserved.
52ea45fbcSitojun.\"
62ea45fbcSitojun.\" This code is derived from software contributed to Berkeley by
72ea45fbcSitojun.\" the American National Standards Committee X3, on Information
82ea45fbcSitojun.\" Processing Systems.
92ea45fbcSitojun.\"
102ea45fbcSitojun.\" Redistribution and use in source and binary forms, with or without
112ea45fbcSitojun.\" modification, are permitted provided that the following conditions
122ea45fbcSitojun.\" are met:
132ea45fbcSitojun.\" 1. Redistributions of source code must retain the above copyright
142ea45fbcSitojun.\"    notice, this list of conditions and the following disclaimer.
152ea45fbcSitojun.\" 2. Redistributions in binary form must reproduce the above copyright
162ea45fbcSitojun.\"    notice, this list of conditions and the following disclaimer in the
172ea45fbcSitojun.\"    documentation and/or other materials provided with the distribution.
18eb7c1594Sagc.\" 3. Neither the name of the University nor the names of its contributors
192ea45fbcSitojun.\"    may be used to endorse or promote products derived from this software
202ea45fbcSitojun.\"    without specific prior written permission.
212ea45fbcSitojun.\"
222ea45fbcSitojun.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
232ea45fbcSitojun.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
242ea45fbcSitojun.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
252ea45fbcSitojun.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
262ea45fbcSitojun.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
272ea45fbcSitojun.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
282ea45fbcSitojun.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
292ea45fbcSitojun.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
302ea45fbcSitojun.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
312ea45fbcSitojun.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
322ea45fbcSitojun.\" SUCH DAMAGE.
332ea45fbcSitojun.\"
342ea45fbcSitojun.\"     @(#)isalnum.3	5.2 (Berkeley) 6/29/91
352ea45fbcSitojun.\"
362ea45fbcSitojun.Dd December 22, 2000
372ea45fbcSitojun.Dt ISWALNUM 3
382ea45fbcSitojun.Os
392ea45fbcSitojun.Sh NAME
402ea45fbcSitojun.Nm iswalnum ,
412ea45fbcSitojun.Nm iswalpha ,
422ea45fbcSitojun.Nm iswblank ,
432ea45fbcSitojun.Nm iswcntrl ,
442ea45fbcSitojun.Nm iswdigit ,
452ea45fbcSitojun.Nm iswgraph ,
462ea45fbcSitojun.Nm iswlower ,
472ea45fbcSitojun.Nm iswprint ,
482ea45fbcSitojun.Nm iswpunct ,
492ea45fbcSitojun.Nm iswspace ,
502ea45fbcSitojun.Nm iswupper ,
512ea45fbcSitojun.Nm iswxdigit
522ea45fbcSitojun.Nd wide character classification utilities
532ea45fbcSitojun.Sh LIBRARY
542ea45fbcSitojun.Lb libc
552ea45fbcSitojun.Sh SYNOPSIS
56472351e1Swiz.In wctype.h
572ea45fbcSitojun.Ft int
582ea45fbcSitojun.Fn iswalnum "wint_t wc"
59a7365f61Sitojun.Ft int
602ea45fbcSitojun.Fn iswalpha "wint_t wc"
61a7365f61Sitojun.Ft int
622ea45fbcSitojun.Fn iswblank "wint_t wc"
63a7365f61Sitojun.Ft int
642ea45fbcSitojun.Fn iswcntrl "wint_t wc"
65a7365f61Sitojun.Ft int
662ea45fbcSitojun.Fn iswdigit "wint_t wc"
67a7365f61Sitojun.Ft int
682ea45fbcSitojun.Fn iswgraph "wint_t wc"
69a7365f61Sitojun.Ft int
702ea45fbcSitojun.Fn iswlower "wint_t wc"
71a7365f61Sitojun.Ft int
722ea45fbcSitojun.Fn iswprint "wint_t wc"
73a7365f61Sitojun.Ft int
742ea45fbcSitojun.Fn iswpunct "wint_t wc"
75a7365f61Sitojun.Ft int
762ea45fbcSitojun.Fn iswspace "wint_t wc"
77a7365f61Sitojun.Ft int
782ea45fbcSitojun.Fn iswupper "wint_t wc"
79a7365f61Sitojun.Ft int
802ea45fbcSitojun.Fn iswxdigit "wint_t wc"
812ea45fbcSitojun.Sh DESCRIPTION
822ea45fbcSitojunThe functions are character classification utility functions,
832ea45fbcSitojunfor use with wide characters
842ea45fbcSitojun.Po
852ea45fbcSitojun.Fa wchar_t
862ea45fbcSitojunor
872ea45fbcSitojun.Fa wint_t
882ea45fbcSitojun.Pc .
89*cef0afe9SwizSee the description of singlebyte classification functions, like
902ea45fbcSitojun.Xr isalnum 3 ,
912ea45fbcSitojunfor details.
922ea45fbcSitojun.Sh RETURN VALUES
932ea45fbcSitojunThe functions return zero if the character tests false and
942ea45fbcSitojunreturn non-zero if the character tests true.
952ea45fbcSitojun.Sh SEE ALSO
962ea45fbcSitojun.Xr isalnum 3 ,
972ea45fbcSitojun.Xr isalpha 3 ,
982ea45fbcSitojun.Xr isblank 3 ,
992ea45fbcSitojun.Xr iscntrl 3 ,
1002ea45fbcSitojun.Xr isdigit 3 ,
1012ea45fbcSitojun.Xr isgraph 3 ,
1022ea45fbcSitojun.Xr islower 3 ,
1032ea45fbcSitojun.Xr isprint 3 ,
1042ea45fbcSitojun.Xr ispunct 3 ,
1052ea45fbcSitojun.Xr isspace 3 ,
1062ea45fbcSitojun.Xr isupper 3 ,
1072ea45fbcSitojun.Xr isxdigit 3
1082ea45fbcSitojun.Sh STANDARDS
1098d3b0e00SwizThe functions conform to
110dca9ccd3Swiz.St -isoC-99 .
11138b935dcSyamt.Sh CAVEATS
112*cef0afe9SwizThe argument to these functions must be
113*cef0afe9Swiz.Dv WEOF
114*cef0afe9Swizor a valid
115*cef0afe9Swiz.Fa wchar_t
116*cef0afe9Swizvalue with the current locale; otherwise, the result is undefined.
117