printf() problem

carroll at s.cs.uiuc.edu carroll at s.cs.uiuc.edu
Sun Apr 30 02:10:00 AEST 1989


/* Written  6:01 pm  Apr 28, 1989 by dierks at 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 at 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



More information about the Comp.lang.c mailing list