Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > How to pass variable argument list to another function w/ variable argument list?

Reply
Thread Tools

How to pass variable argument list to another function w/ variable argument list?

 
 
Ben Kial
Guest
Posts: n/a
 
      11-15-2004
I'd like to write a wrapper function "mysprintf(char *buffer, char *format,
....)" which calls sprintf(). My question is how can I pass variable argument
in mysprintf() to sprintf().

Thanks in advance...

Ben


 
Reply With Quote
 
 
 
 
Eric Enright
Guest
Posts: n/a
 
      11-15-2004
Ben Kial wrote:
> I'd like to write a wrapper function "mysprintf(char *buffer, char *format,
> ...)" which calls sprintf(). My question is how can I pass variable argument
> in mysprintf() to sprintf().


Check out vsprintf().

--
Eric Enright /"\
ericAtiptsoftDcom \ / ASCII Ribbon Campaign
X Against HTML E-Mail
Public Key: 0xBEDF636F / \
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Variable argument function as a parameter of a variable argument function AikidoGuy C Programming 11 11-21-2011 10:43 PM
function argument dependent on another function argument? Reckoner Python 11 01-19-2009 03:31 AM
how to pass a function as an argument to another function laredotornado@zipmail.com Javascript 8 02-01-2007 09:58 AM
Function pointers, variable argument functions calling other variable-argument functions (sort of) S?ren Gammelmark C Programming 1 01-07-2005 09:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57