Xref: utzoo comp.lang.c:9244 comp.sys.ibm.pc:14394 Newsgroups: comp.lang.c,comp.sys.ibm.pc Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: cdecl keyword Message-ID: <1988Apr13.164833.606@utzoo.uucp> Organization: U of Toronto Zoology References: <1238@wjvax.UUCP> <297@ho7cad.ATT.COM> <1242@wjvax.UUCP> Date: Wed, 13 Apr 88 16:48:33 GMT >... 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