cdecl keyword

Doug Gwyn gwyn at brl-smoke.ARPA
Tue Apr 12 23:37:54 AEST 1988


In article <5980 at utcsri.UUCP> flaps at utcsri.UUCP (Alan J Rosenthal) writes:
>In C it is permissible to call any function (including
>user-defined ones) with the wrong number of arguments, so long as any
>arguments not actually passed are not accessed by the function being
>called.

Not true in general.  If you read Dennis's anti-noalias diatribe,
near the end you may recall that he identified two botches in original
C, one of which was that printf()-like functions existed without
adequate language support.  The reason for the ,... approach of ANSI
C is to provide adequate language support for variadic arguments.



More information about the Comp.lang.c mailing list