[3597] in Athena Bugs
printf (and other varargs functions) coded wrong
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Wed Nov 8 01:52:02 1989
Date: Wed, 8 Nov 89 01:51:35 -0500
From: Jonathan I. Kamens <jik@PIT-MANAGER.MIT.EDU>
To: bugs@PIT-MANAGER.MIT.EDU
The printf function (and, I assume, other varargs functions in the C
library) are coded without bothering to use varargs properly. That's
problem number one, probably not too severe since nobody ever said
that library code is supposed to be machine-independent, and the real
purpose of using varargs is machine-independence :-).
Problem number 2, which is a bit more severe, is that there is no
/*VARARGS1*/ declaration before the printf function's definition (and
similar declarations before the definitions of other varargs
functions), which means that the lint library built from the standard
C sources is broken, which means that lint complains about variable
numbers of arguments being passed into printf.
jik