home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!darwin.sura.net!gatech!rutgers!ucla-cs!oahu.cs.ucla.edu!alexis
- From: alexis@oahu.cs.ucla.edu (Alexis Wieland)
- Newsgroups: comp.lang.c++
- Subject: Passing unknown number of arguements through a function (?)
- Message-ID: <1993Jan9.220155.29398@cs.ucla.edu>
- Date: 9 Jan 93 22:01:55 GMT
- Sender: usenet@cs.ucla.edu (Mr Usenet)
- Organization: UCLA, Computer Science Department
- Lines: 19
- Nntp-Posting-Host: oahu.cs.ucla.edu
-
-
- Apologies for the naive question, but:
-
- I just want to pass an unknown number of agruements through a
- function. I had originally assumed I could do something like:
-
- foo_printf (char* format ...) {
- char buf [1024];
- sprintf(buf, format ...);
- /* rest of code */
- }
-
- But this, or anything else I've been able to come up with, doesn't work :-(
- What is the proper way of doing this sort of thing ?
-
- Please send replies to me directly.
- Thanks,
-
- - alexis. <alexis@cs.ucla.edu>
-