summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-06-05 14:09:02 +0200
committerAlejandro Colomar <alx@kernel.org>2023-07-08 20:41:47 +0200
commitc6a101c1c63d9ef70a2536495e5768d48bb525aa (patch)
tree36ba8068f9f7ddd71b7cd7f3ecacb3822d8abfc3
parent315cc123cdba79098bf1ab7cc7a103061d9383ed (diff)
isalpha.3: Move NOTES to CAVEATS, and clarify some Undefined Behavior
Reported-by: Yedidyah Bar David <didi@redhat.com> Acked-by: Sam James <sam@gentoo.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man3/isalpha.36
1 files changed, 4 insertions, 2 deletions
diff --git a/man3/isalpha.3 b/man3/isalpha.3
index 000e816d7..721ca8972 100644
--- a/man3/isalpha.3
+++ b/man3/isalpha.3
@@ -345,13 +345,15 @@ POSIX.1-2008.
.TP
.BR isascii_l ()
glibc 2.3.
-.SH NOTES
+.SH CAVEATS
The standards require that the argument
.I c
for these functions is either
.B EOF
or a value that is representable in the type
-.IR "unsigned char" .
+.IR "unsigned char" ;
+otherwise,
+the behavior is undefined.
If the argument
.I c
is of type