Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ptsfa!ames!think!husc6!cmcl2!rutgers!dayton!viper!john From: john@viper.UUCP Newsgroups: comp.lang.c,comp.sys.ibm.pc Subject: Re: MSC toupper (was Re: MS-DOS NRO ) Message-ID: <1081@viper.Lynx.MN.ORG> Date: Wed, 3-Jun-87 15:20:45 EDT Article-I.D.: viper.1081 Posted: Wed Jun 3 15:20:45 1987 Date-Received: Sat, 6-Jun-87 04:32:13 EDT References: <405@ritcv.UUCP> <725@thumper.UUCP> <345@polyslo.UUCP> <348@polyslo.UUCP> <2576@ncoast.UUCP> Reply-To: john@viper.UUCP (John Stanley) Distribution: na Organization: DynaSoft Systems Lines: 19 Keywords: NRO Xref: utgpu comp.lang.c:2225 comp.sys.ibm.pc:4009 In article <348@polyslo.UUCP>, mpatnode@polyslo.UUCP (Mike Patnode) writes: > > #define toupper ((isupper(c)) ? _tolower(c) : (c)) > While I'm sure this is just an oversight, I'm a bit surprised nobody else noticed and/or commented-on this... The define given is actualy the one for tolower(), not toupper() (and it's missing the dummy parameter "c").... The defines should be: #define toupper(c) (islower(c) ? _toupper(c) : (c)) #define tolower(c) (isupper(c) ? _tolower(c) : (c)) --- John Stanley (john@viper.UUCP) Software Consultant - DynaSoft Systems UUCP: ...{amdahl,ihnp4,rutgers}!{meccts,dayton}!viper!john