Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!uxc!uxc.cso.uiuc.edu!m.cs.uiuc.edu!s.cs.uiuc.edu!carroll From: carroll@s.cs.uiuc.edu Newsgroups: comp.lang.c Subject: Re: printf() problem Message-ID: <207600021@s.cs.uiuc.edu> Date: 29 Apr 89 16:10:00 GMT References: <11657@hodge.UUCP> Lines: 15 Nf-ID: #R:hodge.UUCP:11657:s.cs.uiuc.edu:207600021:000:755 Nf-From: s.cs.uiuc.edu!carroll Apr 29 11:10:00 1989 /* Written 6:01 pm Apr 28, 1989 by dierks@ndmath.UUCP in s.cs.uiuc.edu:comp.lang.c */ ( ... ) The alternative seems to me to be making all functions that take a variable number of arguments non-portable. Is this the case? /* End of text from s.cs.uiuc.edu:comp.lang.c */ No more than the fact the different systems have different IO setups makes using stdin/stdout/etc. non-portable. There is a standard method for doing variadic arguments ("varargs") that takes care of the non-portable parts, just as stdio.h takes care of IO differences. Alan M. Carroll "And there you are carroll@s.cs.uiuc.edu Saying 'We have the Moon, so now the Stars...'" CS Grad / U of Ill @ Urbana ...{ucbvax,pur-ee,convex}!s.cs.uiuc.edu!carroll