Article View: comp.unix.programmer
Article #3512Re: Variable length arg lists in C (gcc): stdarg vs. varargs
From: Kenneth Chiu
Date: Wed, 11 Oct 2000 00:00
Date: Wed, 11 Oct 2000 00:00
14 lines
1129 bytes
1129 bytes
In article <8s26b3$9vl$1@yin.interaccess.com>,
Kenny McCormack <gazelle@interaccess.com> wrote:
> 4) Question: From what I can tell, stdarg has the following
> limitations:
>...
> b) You have to have at least one fixed arg. This causes it
> to fail the "acid test" - namely, "Can I write a wrapper
> around printf?" This is mentioned in the man page
> ("man stdarg" on a Linux system).
>
If your goal is to write a wrapper for printf, you can use stdarg to
write a wrapper around the vprintf() series. This may or may not be
good enough for you.
Technical Details
Message-ID:
<8s2a3q$ur8$1@flotsam.uits.indiana.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8s26b3$9vl$1@yin.interaccess.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,22450a31b48667a4 X-Google-Attributes: gidfc89c,public X-Google-Thread: f65d0,22450a31b48667a4 X-Google-Attributes: gidf65d0,public From: chiuk@cs.indiana.edu (Kenneth Chiu) Subject: Re: Variable length arg lists in C (gcc): stdarg vs. varargs Date: 2000/10/11 Message-ID: <8s2a3q$ur8$1@flotsam.uits.indiana.edu> X-Deja-AN: 680239463 References: <8s26b3$9vl$1@yin.interaccess.com> Organization: Computer Science, Indiana University Newsgroups: comp.unix.programmer,gnu.gcc