Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!brl-adm!brl-smoke!smoke!gwyn@BRL.ARPA From: gwyn@BRL.ARPA (VLD/VMB) Newsgroups: net.lang.c Subject: Re: variable # of args portability? Message-ID: <2009@brl-smoke.ARPA> Date: Mon, 7-Jul-86 22:02:54 EDT Article-I.D.: brl-smok.2009 Posted: Mon Jul 7 22:02:54 1986 Date-Received: Wed, 9-Jul-86 01:22:57 EDT Sender: news@brl-smoke.ARPA Lines: 15 Most UNIX and some other C implementations have a header file that defines macros for getting at variably-sized argument lists; unfortunately this is not sufficient for an interface to a printf-like routine, where you need to pass the remaining argument list along. Many UNIX and some other C implementations provide v*printf functions that are useful in such situations. There is normally some function like _doprnt in the C library, but it may go by another name and have slightly different arguments. For the time being, people usually either invoke *printf using functions with fixed arguments (perhaps several of them to cover all necessary cases) or provide an interface that must be adapted by each site. Other commonly-used approaches tend to be non-portable.