Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!ames!lll-winken!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.lang.c Subject: Re: Prototyping char parameters in ANSI C Message-ID: <1519@auspex.auspex.com> Date: 1 May 89 19:39:52 GMT References: <3950014@eecs.nwu.edu> <8661@xanth.cs.odu.edu> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 18 >In any case I know I do. :-) But I thought that in the new ANSI C (not old-- >NEW!) you could effectively circumvent this behavior and request that small >types be received by the called function as a true char (or float, or >whatever), size and all. You can. >So, I shall now ask: How do you tell the compiler that you want this *NEW* >behavior? If a full prototype isn't good enough, what is? A full prototype *is* good enough. The problem is that the code given in the example doesn't have a full prototype *definition* of the function; you have to define it as: void f(char c) { ... }