va_list used in <stdio.h>

T. William Wells bill at twwells.com
Fri Aug 18 20:27:13 AEST 1989


In article <18684 at princeton.Princeton.EDU> nfs at notecnirp.UUCP (Norbert Schlenker) writes:
: What is <stdio.h> allowed to define?  It has to pick up <stddef.h>, because
: the prototypes in <stdio.h> use size_t.  What makes <stddef.h> allowable
: and <stdarg.h> forbidden?

Only and exactly what is in the standard. Any names that it defines
that are not specified in the standard must be names that are noted as
reserved.

No, it doesn't have to include <stddef.h>: all it has to do is define
size_t itself. Along with interlocks to prevent multiple definitions.

---
Bill                    { uunet | novavax | ankh | sunvice } !twwells!bill
bill at twwells.com



More information about the Comp.lang.c mailing list