Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!unmvax!pprg.unm.edu!topgun!mustang!nntp-server.caltech.edu!seismo.gps.caltech.edu!bruce From: bruce@seismo.gps.caltech.edu (Bruce Worden) Newsgroups: comp.lang.c Subject: Re: Is there a good example of how toupper() works? Summary: His argument is broken, Doctor, should I put a cast on it? Message-ID: <1990Oct23.184229.12582@nntp-server.caltech.edu> Date: 23 Oct 90 18:42:29 GMT References: <15857@csli.Stanford.EDU<859@agcsun.UUCP> <1990Oct21.060952.191@sq.sq.com> <1990Oct22.170646.22055@sq.sq.com> Sender: bruce@seismo.gps.caltech.edu (Bruce Worden) Organization: California Institute of Technology, CA Lines: 6 Nntp-Posting-Host: sis.gps.caltech.edu Just a thought, but since toupper() and islower() claim to want an int as their argument, shouldn't we all be explicitly casting the char that we have been happily feeding them, rather than rely on the implicit conversion? -------------------------------------------------------------------------- C. Bruce Worden bruce@seismo.gps.caltech.edu 252-21 Seismological Laboratory, Caltech, Pasadena, CA 91125