Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!rochester!bbn.com!mips2!mips2!chrisa From: chrisa@beldar.ma30.bull.com (Chris Anderson) Newsgroups: comp.sys.sgi Subject: stdarg.h mostly broken Message-ID: Date: 25 Mar 91 18:39:53 GMT Sender: @mips2.cr.bull.com Distribution: comp Organization: Bull HN Systems Architecture & Design Lines: 26 The following program prints "0" when compiled on a 4D20: #include main() { foo(1); } foo(x) { va_list ap; va_start(ap, x); printf("%d\n", va_arg(ap, int)); } However, if the "x" argument name is changed to "va_alist", then it prints "1", which is clearly the right answer. Do I detect a slight bias towards varargs.h here? :-) -- ______________________________. /_____________________________/| | Chris Anderson || | chrisa@beldar.ma30.bull.com || |_____________________________|/