Xref: utzoo comp.bugs.sys5:331 comp.bugs.4bsd:700 Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!beta!hc!ames!amdahl!nsc!amos From: amos@nsc.nsc.com (Amos Shapir NSTA) Newsgroups: comp.bugs.sys5,comp.bugs.4bsd Subject: Re: ctype (was: VI bug) Message-ID: <4977@nsc.nsc.com> Date: 20 Feb 88 17:52:00 GMT References: <1027@sauron.Columbia.NCR.COM> Organization: National Semiconductor, Sunnyvale Lines: 13 The is...() macros are only valid to test the type of ASCII values; that's what the isascii() macro is for. The correct usage is: if(isascii(c) && isdigit(c)) ... and that's how it should be fixed in vi. (See K&R p.127 or H&S p. 291). -- Amos Shapir My other CPU is a NS32532 National Semiconductor 7C/266 1135 Kern st. Sunnyvale (408) 721-8161 amos@nsc.com till March 1, 88; Then back to amos%taux01@nsc.com