Talk:UTIL VarArgs

From Valve Developer Community
Jump to: navigation, search

Why would you ever want to use VarArgs over say V_vsnprintf? --DaFox 05:49, 12 April 2011 (UTC)

Cause VarArgs is documented and V_vsnprintf isn't. ;) LordNed 06:01, 12 April 2011 (UTC)
V_vsnprintf still requires you to allocate memory for the output while (UTIL_)VarArgs simply dumps everything into a static array and returns a pointer. Way more convenient to use in many cases... --Biohazard 12:01, 12 April 2011 (UTC)