Jump to content

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. */

 

}

Link to post
Share on other sites
  • 2 weeks later...

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

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji 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...
×
×
  • Create New...