Jens Thoms Toerring wrote:
.... snip ...
This is not on-topic in comp.programmin g. It belongs on
comp.lang.c, to which I have rerouted it and set follow-ups.
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home .att.net>
Try the download section.
** Posted from http://www.teranews.com **
Bill Cunningham <nospam@nspam.c omwrote:
>
>
>
>
Sorry, but using printf() correctly is a bit complicated.
Moreover printf() is a function were, if you screw up, there
is nothing the compiler or anything else can help you with.
That's a common problem of so-called variadic functions in
C (all those that accept an unspecified number of arguments,
i.e. have three dots '...' in the prototype). These functions
have to rely on that the format specifiers and the actual
arguments match (or at least deviate not too much). E.g.
if you do
>This just makes printf more complicated for me. I read the page.
>I don't know if I need a length conversion or a format specifer.
>I don't know if I need a length conversion or a format specifer.
Sorry, but using printf() correctly is a bit complicated.
Moreover printf() is a function were, if you screw up, there
is nothing the compiler or anything else can help you with.
That's a common problem of so-called variadic functions in
C (all those that accept an unspecified number of arguments,
i.e. have three dots '...' in the prototype). These functions
have to rely on that the format specifiers and the actual
arguments match (or at least deviate not too much). E.g.
if you do
comp.lang.c, to which I have rerouted it and set follow-ups.
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home .att.net>
Try the download section.
** Posted from http://www.teranews.com **
Comment