Article View: comp.std.c
Article #5571Re: Argument widening on varadic functions
From: Rich Salz
Date: Tue, 10 Jan 1989 18:15
Date: Tue, 10 Jan 1989 18:15
18 lines
1136 bytes
1136 bytes
In <1329@fig.bbn.com> (an article I just cancelled) I asked Does argument widening happen for <stdarg.h> 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 <leendert@cs.vu.nl> 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 <gwyn@BRL.MIL>, Chris Torek <chris@mimsy.umd.edu>, and Roland McGrath <mcgrath@homer.Berkeley.EDU> Thanks! /rich $alz -- Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.
Technical Details
Message-ID:
<1331@fig.bbn.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!mailrus!bbn!bbn.com!rsalzReferences:
<1329@fig.bbn.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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