Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!bloom-beacon!eru!luth!sunic!mcsun!hp4nl!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.os.minix Subject: Re: Important new program: cleanit.c Message-ID: <3554@solo2.cs.vu.nl> Date: 6 Oct 89 21:56:22 GMT References: <3492@ast.cs.vu.nl> <3498@solo10.cs.vu.nl> <3539@ast.cs.vu.nl> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 17 ast@cs.vu.nl (Andy Tanenbaum) writes: \... This was a case of calling a function that was declared with \ three formal parameters with two actual parameters, i.e. just leaving out \ the last actual parameter. Given the C calling sequence of pushing the \ last parameter first, this is legal, [...] I think it's always illegal: there might exist machines with `weird' calling conventions which would choke over such mis-invocations (while still allowing varargs functions). (Aside: could you comment on that, Henry?) Anyway, what's wrong with the shell script? (I hope you don't feel offended by my .signatures: I'm just quoting funny remarks.) -- "Sometimes it seems Marvin wrote MINIX while Andy was playing Donald Duck's Playground on Suzanne's computer." (Benno van den Brink) | mcvax!botter!maart