home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!wupost!m.cs.uiuc.edu!sunb10.cs.uiuc.edu!sparc10.cs.uiuc.edu!pjl
- From: pjl@sparc10.cs.uiuc.edu (Paul Lucas)
- Subject: Re: using (...) question
- Message-ID: <1992Aug18.042809.14029@sunb10.cs.uiuc.edu>
- Sender: news@sunb10.cs.uiuc.edu
- Organization: University of Illinois at Urbana-Champaign
- References: <J3mkPB8w165w@toz.buffalo.ny.us> <1992Aug16.221527.4992@sunb10.cs.uiuc.edu>
- Distribution: usa
- Date: Tue, 18 Aug 1992 04:28:09 GMT
- Lines: 19
-
- In <1992Aug16.221527.4992@sunb10.cs.uiuc.edu> pjl@sparc10.cs.uiuc.edu (Paul Lucas) writes:
-
- >In <J3mkPB8w165w@toz.buffalo.ny.us> cyberman@toz.buffalo.ny.us (Cyberman) writes:
-
- >>I am making a function that will not have set number of
- >>parameters passed to it except 1. Now how do I ACCESS these parameters?
- >>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.
-
- *****> I meant <stdarg.h>; old habits die hard.
- --
- - Paul J. Lucas University of Illinois
- AT&T Bell Laboratories at Urbana-Champaign
- Naperville, IL pjl@cs.uiuc.edu
-