Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/gen/ispunct.3,v retrieving revision 1.5 retrieving revision 1.5.12.4 diff -u -p -r1.5 -r1.5.12.4 --- src/lib/libc/gen/ispunct.3 1998/02/05 18:47:21 1.5 +++ src/lib/libc/gen/ispunct.3 2002/08/01 03:28:10 1.5.12.4 @@ -1,4 +1,4 @@ -.\" $NetBSD: ispunct.3,v 1.5 1998/02/05 18:47:21 perry Exp $ +.\" $NetBSD: ispunct.3,v 1.5.12.4 2002/08/01 03:28:10 nathanw Exp $ .\" .\" Copyright (c) 1991 The Regents of the University of California. .\" All rights reserved. @@ -46,7 +46,7 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.Fd #include +.Fd #include \*[Lt]ctype.h\*[Gt] .Ft int .Fn ispunct "int c" .Sh DESCRIPTION @@ -74,13 +74,21 @@ returns non-zero if the character tests .Xr isspace 3 , .Xr isupper 3 , .Xr isxdigit 3 , +.Xr stdio 3 , .Xr toascii 3 , .Xr tolower 3 , .Xr toupper 3 , -.Xr stdio 3 , .Xr ascii 7 .Sh STANDARDS The .Fn ispunct function conforms to .St -ansiC . +.Sh CAVEATS +The argument to +.Fn ispunct +must be +.Dv EOF +or representable as an +.Li unsigned char ; +otherwise, the result is undefined.