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: <1992Aug16.221527.4992@sunb10.cs.uiuc.edu>
- Sender: news@sunb10.cs.uiuc.edu
- Organization: University of Illinois at Urbana-Champaign
- References: <J3mkPB8w165w@toz.buffalo.ny.us>
- Distribution: usa
- Date: Sun, 16 Aug 1992 22:15:27 GMT
- Lines: 15
-
- 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.
- --
- - Paul J. Lucas University of Illinois
- AT&T Bell Laboratories at Urbana-Champaign
- Naperville, IL pjl@cs.uiuc.edu
-