<pclass="level0">These are all functions that produces output according to a format string and given arguments. These are mostly clones of the well-known C-style functions and there will be no detailed explanation of all available formatting rules and usage here.
<pclass="level0">See this table for notable exceptions.
<pclass="level1">
<pclass="level1"><spanClass="bold">curl_mprintf()</span> Normal printf() clone.
<pclass="level1"><spanClass="bold">curl_mfprintf()</span> Normal fprintf() clone.
<pclass="level1"><spanClass="bold">curl_msprintf()</span> Normal sprintf() clone.
<pclass="level1"><spanClass="bold">curl_msnprintf()</span> snprintf() clone. Many systems don't have this. It is just like <spanClass="bold">sprintf</span> but with an extra argument after the buffer that specifies the length of the target buffer.
<pclass="level1"><spanClass="bold">curl_mvprintf()</span> Normal vprintf() clone.
<pclass="level1"><spanClass="bold">curl_mvfprintf()</span> Normal vfprintf() clone.
<pclass="level1"><spanClass="bold">curl_mvsprintf()</span> Normal vsprintf() clone.
<pclass="level1"><spanClass="bold">curl_mvsnprintf()</span> vsnprintf() clone. Many systems don't have this. It is just like <spanClass="bold">vsprintf</span> but with an extra argument after the buffer that specifies the length of the target buffer.
<pclass="level1"><spanClass="bold">curl_maprintf()</span> Like printf() but returns the output string as a malloc()ed string. The returned string must be free()ed by the receiver.
<pclass="level1"><spanClass="bold">curl_mvaprintf()</span> Like curl_maprintf() but takes a va_list pointer argument instead of a variable amount of arguments.
<pclass="level0">
<pclass="level0">To easily use all these cloned functions instead of the normal ones, #define _MPRINTF_REPLACE before you include the <curl/mprintf.h> file. Then all the normal names like printf, fprintf, sprintf etc will use the curl-functions instead. <aname="AVAILABILITY"></a><h2class="nroffsh">AVAILABILITY</h2>
<pclass="level0">These function will be removed from the public libcurl API in a near future. They will instead be made "available" by source code access only, and then as curlx_-prefixed functions. See lib/README.curlx for further details. <aname="RETURN"></a><h2class="nroffsh">RETURN VALUE</h2>
<pclass="level0">The <spanClass="bold">curl_maprintf</span> and <spanClass="bold">curl_mvaprintf</span> functions return a pointer to a newly allocated string, or NULL it it failed.
<pclass="level0">All other functions return the number of character they actually outputed. <aname="SEE"></a><h2class="nroffsh">SEE ALSO</h2>