cdecl keyword

Henry Spencer henry at utzoo.uucp
Thu Apr 14 02:48:33 AEST 1988


>... 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.

Sorry, wrong.  You are confusing what you can get away with in certain common
implementations (notably, on the VAX) with what is guaranteed by C.  With a
few sort of kludged-in exceptions like printf, type and number of arguments
must match if you want to be sure it will work.
-- 
"Noalias must go.  This is           |  Henry Spencer @ U of Toronto Zoology
non-negotiable."  --DMR              | {allegra,ihnp4,decvax,utai}!utzoo!henry



More information about the Comp.lang.c mailing list