This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: (printf) ("hello world\n");


Andreas Schwab wrote:

Eyal Lebedinsky <eyal@eyal.emu.id.au> writes:


But without <stdio.h> the varargs attribute is not present


A varargs function is always a varargs function, whether it is prototyped
or not.  But without a proper prototype the behaviour is undefined.

Is it really true that the name printf is reserved? Is a C program not allowed to define its own printf function (which might or might not be varargs)? What's the story here?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]