Jump to content
trossin

Real Sprintf Or Variable Arguments

Recommended Posts

Is it possible to get sprint with variable arguments or support variable arguments in general like the following?

 

void HeaderPrintf(char *Format, ...)

{

va_list Marker;

char Buffer[50];

 

va_start(Marker,Format); /* Initialize variable arguments. */

vsprintf(Buffer,Format,Marker);

va_end(Marker); /* Reset variable arguments. */

 

}

Share this post


Link to post
Share on other sites

No variable arguments are not supported and we don't plan to add support for it. The reason behind is a very long generated code required to properly support this feature.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×