From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c4c8767134e2afe9,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-04-11 04:21:43 PST Path: gmd.de!xlink.net!howland.reston.ans.net!gatech!swrinde!sgiblab!sgigate.sgi.com!olivea!grapevine.lcs.mit.edu!chaos.dac.neu.edu!chaos.dac.neu.edu!johnson From: johnson@chaos.dac.neu.edu (Chris Johnson) Newsgroups: comp.unix.osf.osf1 Subject: More porting problems, function arguments. Date: 11 Apr 1994 11:21:43 GMT Organization: Northeastern University, Boston, MA. 02115, USA Message-ID: <2obbs7$ppv@chaos.dac.neu.edu> NNTP-Posting-Host: chaos.dac.neu.edu X-Newsreader: TIN [version 1.2 PL1] in K&R implementations it was possible to have a variable number of function arguments, in other words different numbers of arguments for different function calls to the same function. A good example of this is printf. The printf function can have as man aguments as you want determined by the first argument formatting string. I'm trying to port old C, K&R filled with BSDisms, to OSF 1. There is one call in this code used many places that relies on te fact that older compilers didn't mind argument number mismatches between function definition and call. That is the definition had 10 arguments but the call supplies only 6. I'm at a point now where the running code dies with a BPT Trap at this mismathed call. Should this mismatch work in OSF 1' s C? Is there a way to do this mismatch? This function is used (or misused) all over the place. I need to come up with a plan of attack on how to deal with this. Thanks. ============================================================================ Chris Johnson Internet: johnson@chaos.dac.neu.edu Assistant Director, Systems BITNET: johnson@nuhub Division of Academic Computing Voice: 617.373.3300 Northeastern University, 39RI FAX: 617.373.8600 360 Huntington, Ave. Boston, MA., U.S.A. 02115 ============================================================================