Path: utzoo!attcan!uunet!husc6!bbn!uwmcsd1!ig!agate!ucbvax!decwrl!labrea!sri-unix!garth!smryan From: smryan@garth.UUCP (Steven Ryan) Newsgroups: comp.lang.c Subject: Re: C vs. FORTRAN Message-ID: <870@garth.UUCP> Date: 5 Jul 88 00:27:30 GMT References: <3136@phoenix.Princeton.EDU> <225800038@uxe.cso.uiuc.edu> <797@garth.UUCP> <5173@ihlpf.ATT.COM> <852@garth.UUCP> <546@philmds.UUCP> Reply-To: smryan@garth.UUCP (Steven Ryan) Organization: INTERGRAPH (APD) -- Palo Alto, CA Lines: 11 >How does FORTRAN b.t.w. handle the situation that there is a variable >arguments list (cf. printf()) ? Seems a bit difficult with 'static lists'. >Probably does not.... It is important to realise that a variable length argument list is variable length from the called routine's point of view, not the caller's--it has the argument list right there in its greedy little hands. I saw two methods: a 170 appends a zero word terminator to the argument list. A 205 passes the argument list length in the length field of argument list point.