Path: utzoo!utgpu!watserv1!watmath!att!mcdchg!laidbak!ism.isc.com!uunet!wuarchive!udel!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!jh4o+ From: jh4o+@andrew.cmu.edu (Jeffrey T. Hutzelman) Newsgroups: comp.lang.c Subject: Re: Is there a good example of how toupper() works? Message-ID: Date: 19 Oct 90 15:11:26 GMT References: <2466@ux.acs.umn.edu> , <1990Oct17.170914.683@wpi.WPI.EDU>, <0b7VPga00Vp8EJKEwa@andrew.cmu.edu> Organization: Carnegie Mellon, Pittsburgh, PA Lines: 27 In-Reply-To: <0b7VPga00Vp8EJKEwa@andrew.cmu.edu> I wrote: > No. In ANSI C, toupper is required to leave the character alone if it > is not lowercase. However, as several people have pointed out to me, BSD 4.3 UNIX does not follow this rule. I ran the test program on the following machine types, and got the folowing results: Machine O/S Works Correctly? ------- --- ---------------- DECstation 3100 4.3 BSD* Yes Sun 3 4.2 BSD** No VAXstation 3100 VMS 5.4 Yes Apple IIgs GS/OS 5.0.2 Should, but not ORCA/C 1.1 actually tested*** *or so it claims (Ultrix V something) **or so it claims (I think SunOS 3.5) ***I didn't test it, but it claims to work that way. ----------------- Jeffrey Hutzelman America Online: JeffreyH11 Internet/BITNET:jh4o+@andrew.cmu.edu, jhutz@drycas.club.cc.cmu.edu, jh4o@cmuccvma >> Apple // Forever!!! <<