Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.lang.c Subject: Re: getch() and getche() in MSC 4.0 Message-ID: <339@auspex.UUCP> Date: 28 Oct 88 04:28:51 GMT Article-I.D.: auspex.339 References: <10508@dartvax.Dartmouth.EDU> <10523@dartvax.Dartmouth.EDU> <236@shockeye.UUCP> <8764@smoke.BRL.MIL> <1737@cbnews.ATT.COM> Reply-To: guy@auspex.UUCP (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 17 >A related suggestion... I have a program that makes '_' an alphabetic >by changing _ctype[]. This was a bad idea since 1) the "array" has a >different name on different systems, eg. BSD vs. AT&T, Try "AT&T vs. AT&T"; V7 used "_ctype_", and a different AT&T release (S3 or S5) removed the "_". Don't assume every place where BSD and S5 differ is the result of AT&T and Berkeley deciding to do things differently; sometimes it was just one or more parts of AT&T deciding to do things differently.... And yes, it was a bad idea (I think the S5 "m4" code does the same thing); don't assume you know the way some system-defined function works internally, because some day you may find a system on which it works differently.... (Furthermore, some library routine your program calls may have expected "isalpha('_')" to be false, in which case it was in for a rude surprise.)