home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12476 < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!wupost!m.cs.uiuc.edu!sunb10.cs.uiuc.edu!sparc10.cs.uiuc.edu!pjl
  3. From: pjl@sparc10.cs.uiuc.edu (Paul Lucas)
  4. Subject: Re: using (...) question
  5. Message-ID: <1992Aug18.042809.14029@sunb10.cs.uiuc.edu>
  6. Sender: news@sunb10.cs.uiuc.edu
  7. Organization: University of Illinois at Urbana-Champaign
  8. References: <J3mkPB8w165w@toz.buffalo.ny.us> <1992Aug16.221527.4992@sunb10.cs.uiuc.edu>
  9. Distribution: usa
  10. Date: Tue, 18 Aug 1992 04:28:09 GMT
  11. Lines: 19
  12.  
  13. In <1992Aug16.221527.4992@sunb10.cs.uiuc.edu> pjl@sparc10.cs.uiuc.edu (Paul Lucas) writes:
  14.  
  15. >In <J3mkPB8w165w@toz.buffalo.ny.us> cyberman@toz.buffalo.ny.us (Cyberman) writes:
  16.  
  17. >>I am making a function that will not have set number of 
  18. >>parameters passed to it except 1.  Now how do I ACCESS these parameters?
  19. >>I know printf is prototyped as
  20. >>int printf(char *,...);
  21. >>I would like to know how from within the function to access the 
  22. >>remaing parameters!
  23.  
  24. >*****>    By using <varargs.h>  Stroustrup, 2nd. edition, has an example as
  25. >    does my book.
  26.  
  27. *****>    I meant <stdarg.h>; old habits die hard.
  28. -- 
  29.     - Paul J. Lucas                University of Illinois    
  30.       AT&T Bell Laboratories        at Urbana-Champaign
  31.       Naperville, IL            pjl@cs.uiuc.edu
  32.