Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!oliveb!rap From: rap@oliveb.UUCP Newsgroups: comp.lang.c,comp.sys.ibm.pc Subject: Re: MSC toupper (was Re: MS-DOS NRO ) Message-ID: <1163@oliveb.UUCP> Date: Fri, 29-May-87 16:37:16 EDT Article-I.D.: oliveb.1163 Posted: Fri May 29 16:37:16 1987 Date-Received: Sat, 30-May-87 11:54:17 EDT References: <405@ritcv.UUCP> <725@thumper.UUCP> <345@polyslo.UUCP> <348@polyslo.UUCP> <6933@alice.UUCP> Reply-To: rap@olivej.UUCP (Robert A. Pease) Distribution: na Organization: Olivetti ATC; Cupertino, Ca Lines: 24 Keywords: NRO Xref: utgpu comp.lang.c:2155 comp.sys.ibm.pc:3876 In article <6933@alice.UUCP> ark@alice.UUCP writes: >In article <348@polyslo.UUCP>, mpatnode@polyslo.UUCP writes: >-> Well Dan this is straight out of my ctype.h: >-> >-> #define toupper ((isupper(c)) ? _tolower(c) : (c)) >-> >-> Upon closer evaluation I now see the argument is only evaluated 2 >-> times. But this was with MSC 3.00 so 4.0 may have change. > >Gee, I guess MSC 3.00 is broken, then. Maybe they'll fix it in 4.0 It pains me sometimes to see people who are smart enough to know everything. Sorry for the dig, but if you read the manual you would see that there are both macros and functions for toupper and tolower. Microsoft suggests that if the macros are not desired, delete them from the include file and link with some other library file. Its all spelled out. -- Robert A. Pease {hplabs|fortune|idi|ihnp4|tolerant|allegra|glacier|olhqma}!oliveb!olivej!rap