Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!bbn!bbn.com!rsalz From: rsalz@bbn.com (Rich Salz) Newsgroups: comp.std.c Subject: Re: Argument widening on varadic functions Message-ID: <1331@fig.bbn.com> Date: 10 Jan 89 18:15:49 GMT References: <1329@fig.bbn.com> Organization: BBN Systems and Technologies Corporation Lines: 18 In <1329@fig.bbn.com> (an article I just cancelled) I asked Does argument widening happen for functions? Judging from the description of printf (i.e., "%f" prints a float argument), it seems that's the case. And it is, in fact, the case. Thanks to Leendert van Doorn for the reference, paragraph 3.3.2.2: The ellipsis notation in a function prototype declarator causes argument type conversion to stop after the last declared parameter. The default argument promotions are performed on trailing arguments Other speedy replies came from Doug Gwyn , Chris Torek , and Roland McGrath Thanks! /rich $alz -- Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.