home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!taumet!steve
- From: steve@taumet.com (Steve Clamage)
- Subject: Re: using (...) question
- Message-ID: <1992Aug17.170733.17470@taumet.com>
- Organization: TauMetric Corporation
- References: <J3mkPB8w165w@toz.buffalo.ny.us> <1992Aug16.221527.4992@sunb10.cs.uiuc.edu>
- Distribution: usa
- Date: Mon, 17 Aug 1992 17:07:33 GMT
- Lines: 25
-
- pjl@sparc10.cs.uiuc.edu (Paul Lucas) writes:
-
- >In <J3mkPB8w165w@toz.buffalo.ny.us> cyberman@toz.buffalo.ny.us (Cyberman) writes:
-
- >>I know printf is prototyped as
- >>int printf(char *,...);
- >>I would like to know how from within the function to access the
- >>remaing parameters!
-
- >*****> By using <varargs.h> Stroustrup, 2nd. edition, has an example as
- > does my book.
-
- The usual C implementations of <varargs.h> are not usable in C++, as
- the macros result in illegal C++ code.
-
- The Standard C header file <stdarg.h> serves the same purpose and is
- generally available with C++ implementations. The ANSI/ISO C++
- committee has voted to make the Standard C header <stdarg.h> part of C++.
-
- If at all possible, you should use <stdarg.h> rather than <varargs.h>.
- See any good Standard C text for information on the use of these macros.
- --
-
- Steve Clamage, TauMetric Corp, steve@taumet.com
- Vice Chair, ANSI C++ Committee, X3J16
-