summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/isascii.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/locale/isascii.3')
-rw-r--r--lib/libc/locale/isascii.311
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libc/locale/isascii.3 b/lib/libc/locale/isascii.3
index f7e1325..294c5be 100644
--- a/lib/libc/locale/isascii.3
+++ b/lib/libc/locale/isascii.3
@@ -28,7 +28,7 @@
.\" @(#)isascii.3 8.2 (Berkeley) 12/11/93
.\" $FreeBSD$
.\"
-.Dd October 6, 2002
+.Dd September 3, 2009
.Dt ISASCII 3
.Os
.Sh NAME
@@ -47,6 +47,15 @@ function tests for an
.Tn ASCII
character, which is any character
between 0 and octal 0177 inclusive.
+.Pp
+.Em NOTE :
+if the value passed to the
+.Fn isascii
+function is a
+.Vt signed char ,
+as is usually the case, it must be cast to an
+.Vt unsigned char
+to avoid sign-extension errors.
.Sh SEE ALSO
.Xr ctype 3 ,
.Xr iswascii 3 ,
OpenPOWER on IntegriCloud