From 6068c0461b424cd52f9166099e2d28eb27ed1dbf Mon Sep 17 00:00:00 2001 From: Philip Guenthe Date: Fri, 23 Nov 2012 22:54:09 +0000 Subject: Copy from the is* manpages the CAVEAT about the input range. ok jmc@ --- lib/libc/gen/toupper.3 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib/libc/gen/toupper.3') diff --git a/lib/libc/gen/toupper.3 b/lib/libc/gen/toupper.3 index 62cd690c7e7..5eae1357300 100644 --- a/lib/libc/gen/toupper.3 +++ b/lib/libc/gen/toupper.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: toupper.3,v 1.13 2007/05/31 19:19:29 jmc Exp $ +.\" $OpenBSD: toupper.3,v 1.14 2012/11/23 22:54:08 guenther Exp $ .\" .\" Copyright (c) 1989, 1991 The Regents of the University of California. .\" All rights reserved. @@ -31,7 +31,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: November 23 2012 $ .Dt TOUPPER 3 .Os .Sh NAME @@ -97,3 +97,11 @@ The .Fn toupper function conforms to .St -ansiC . +.Sh CAVEATS +The argument to +.Nm +must be +.Dv EOF +or representable as an +.Li unsigned char ; +otherwise, the result is undefined. -- cgit v1.2.3