Path: utzoo!utgpu!attcan!uunet!husc6!mailrus!uflorida!gatech!mcnc!unccvax!mru From: mru@unccvax.UUCP (Markus Ruppel) Newsgroups: comp.lang.c Subject: Re: getch() and getche() in MSC 4.0 Message-ID: <1178@unccvax.UUCP> Date: 20 Oct 88 23:32:15 GMT References: <10508@dartvax.Dartmouth.EDU> Organization: Univ. of NC at Charlotte, Charlotte, NC Lines: 16 >Scott Horne: > > c = toupper(getch()); > Per default, toupper() is implemented as a macro which causes side effects. You have to '#undef toupper()' to force the compiler to use the function version. This also applies to 'tolower()'. Markus Ruppel Dept. of Chemistry UNCC USA UUCP: ...mcnc!mru ...mcnc!unccvax!mru BITNET: ACC00MR1@UNCCVM