Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!umich!umeecs!zip!spencer From: spencer@eecs.umich.edu (Spencer W. Thomas) Newsgroups: comp.sys.sgi Subject: Re: stdarg.h/code generation botch? Message-ID: Date: 31 Jul 90 04:22:44 GMT References: <2978@zipeecs.umich.edu> Sender: news@zip.eecs.umich.edu Organization: University of Michigan EECS Dept Lines: 20 In-reply-to: spencer@dip.eecs.umich.edu's message of 30 Jul 90 13:51:56 GMT Well, mea culpa. It has been pointed out to me that the correct stdarg usage is: int scanargs( int argc, char **argv, char *format, ... ) very important ^^^ However, I plead a little justified ignorance: I cannot find an on-line man page for stdarg on any of the Iris 4Ds to which I have access. Maybe it's in the printed documenation, but I'm not any where near that. Why did varargs work, you may ask? Well, the compiler recognizes the argument name 'va_alist' as a special case... Anyway, it was 'user error', and I will be more careful to RTFM in the future. -- =Spencer W. Thomas EECS Dept, U of Michigan, Ann Arbor, MI 48109 spencer@eecs.umich.edu 313-936-2616 (8-6 E[SD]T M-F)