diff options
author | tjr <tjr@FreeBSD.org> | 2002-10-03 08:49:29 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-10-03 08:49:29 +0000 |
commit | f18ee8bb402e5cff7b3513c0e7390020b7b09945 (patch) | |
tree | 840b3f47ff031e1fba2892acb68af4d0566c766c /lib/libc/locale/wctype.3 | |
parent | eba16f8d014702d2cbb7fc47feee765e344015fb (diff) | |
download | FreeBSD-src-f18ee8bb402e5cff7b3513c0e7390020b7b09945.zip FreeBSD-src-f18ee8bb402e5cff7b3513c0e7390020b7b09945.tar.gz |
Add an Examples section with an example of how to use the functions.
Diffstat (limited to 'lib/libc/locale/wctype.3')
-rw-r--r-- | lib/libc/locale/wctype.3 | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/libc/locale/wctype.3 b/lib/libc/locale/wctype.3 index f23745b..7843af7 100644 --- a/lib/libc/locale/wctype.3 +++ b/lib/libc/locale/wctype.3 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 3, 2002 +.Dd October 3, 2002 .Dt WCTYPE 3 .Os .Sh NAME @@ -80,6 +80,20 @@ is invalid, otherwise it returns a value of type .Vt wctype_t that can be used in subsequent calls to .Fn iswctype . +.Sh EXAMPLES +Reimplement +.Fn iswalpha +in terms of +.Fn iswctype +and +.Fn wctype : +.Bd -literal -offset indent +int +myiswalpha(wint_t wc) +{ + return (iswctype(wc, wctype("alpha"))); +} +.Ed .Sh SEE ALSO .Xr ctype 3 .Sh STANDARDS |