🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #687

Re: ctype (was: VI bug)

#687
From: Amos Shapir NSTA
Date: Sat, 20 Feb 1988 17:52
13 lines
803 bytes
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 
Technical Details
Message-ID: <4977@nsc.nsc.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!beta!hc!ames!amdahl!nsc!amos
References: <1027@sauron.Columbia.NCR.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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