From 576ccca3eb6d845d7f7f7c71172ea8594aa853e7 Mon Sep 17 00:00:00 2001 From: apb Date: Thu, 17 Apr 2008 16:40:20 +0000 Subject: [PATCH] When given negative inputs, isascii returns false. Clarify that it checks for the range 0 to 127, not "less than or equal to 0177". --- lib/libc/gen/isascii.3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libc/gen/isascii.3 b/lib/libc/gen/isascii.3 index 729d76e8c6d2..4f3ba956d9d4 100644 --- a/lib/libc/gen/isascii.3 +++ b/lib/libc/gen/isascii.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: isascii.3,v 1.16 2007/01/18 08:35:07 rillig Exp $ +.\" $NetBSD: isascii.3,v 1.17 2008/04/17 16:40:20 apb Exp $ .\" .\" Copyright (c) 1989, 1991 The Regents of the University of California. .\" All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)isascii.3 5.1 (Berkeley) 5/2/91 .\" -.Dd January 18, 2007 +.Dd April 17, 2008 .Dt ISASCII 3 .Os .Sh NAME @@ -46,8 +46,8 @@ The .Fn isascii function tests for an .Tn ASCII -character, which is any character with a value less than or -equal to 0177. +character, which is any character with a value in the +range from 0 to 127, inclusive. .Pp The .Fn isascii