</pre></div></div></div><scripttype="text/javascript">AddLanguageTabSet("ID0EDCA");</script><h4class="subHeading">Parameters</h4><dl><dt><spanclass="parameter">buf</span></dt><dd>Type:<ahref="06249483-9daf-95f9-32c7-30195550bbcc.htm">Math.Gmp.Native<spanid="LST3EC5D84B_1"></span><scripttype="text/javascript">AddLanguageSpecificTextSet("LST3EC5D84B_1?cs=.|vb=.|cpp=::|nu=.|fs=.");</script>char_ptr</a><br/>The string to print to.</dd><dt><spanclass="parameter">size</span></dt><dd>Type:<ahref="d9761bfb-1882-59d2-e89b-c6460141f9a6.htm">Math.Gmp.Native<spanid="LST3EC5D84B_2"></span><scripttype="text/javascript">AddLanguageSpecificTextSet("LST3EC5D84B_2?cs=.|vb=.|cpp=::|nu=.|fs=.");</script>size_t</a><br/>The maximum number of bytes to write.</dd><dt><spanclass="parameter">fmt</span></dt><dd>Type:<ahref="http://msdn2.microsoft.com/en-us/library/s1wwdcbf"target="_blank">System<spanid="LST3EC5D84B_3"></span><scripttype="text/javascript">AddLanguageSpecificTextSet("LST3EC5D84B_3?cs=.|vb=.|cpp=::|nu=.|fs=.");</script>String</a><br/>Format string. See <ahref="https://gmplib.org/manual/Formatted-Output-Strings.html#Formatted-Output-Strings">Formatted Output Strings</a>.</dd><dt><spanclass="parameter">ap</span></dt><dd>Type:<spanid="LST3EC5D84B_4"></span><scripttype="text/javascript">AddLanguageSpecificTextSet("LST3EC5D84B_4?cpp=array<");</script><ahref="http://msdn2.microsoft.com/en-us/library/e5kfa45b"target="_blank">System<spanid="LST3EC5D84B_5"></span><scripttype="text/javascript">AddLanguageSpecificTextSet("LST3EC5D84B_5?cs=.|vb=.|cpp=::|nu=.|fs=.");</script>Object</a><spanid="LST3EC5D84B_6"></span><scripttype="text/javascript">AddLanguageSpecificTextSet("LST3EC5D84B_6?cpp=>|vb=()|nu=[]");</script><br/>Arguments.</dd></dl><h4class="subHeading">Return Value</h4>Type:<ahref="http://msdn2.microsoft.com/en-us/library/td2s409d"target="_blank">Int32</a><br/>The return value is the total number of characters which ought to have been produced, excluding the terminating null. If retval ≥ <spanclass="parameter">size</span> then the actual output has been truncated to the first <spanclass="parameter">size</span> - 1 characters, and a null appended.</div><divclass="collapsibleAreaRegion"><spanclass="collapsibleRegionTitle"onclick="SectionExpandCollapse('ID2RB')"onkeypress="SectionExpandCollapse_CheckKey('ID2RB', event)"tabindex="0"><imgid="ID2RBToggle"class="collapseToggle"src="../icons/SectionExpanded.png"/>Remarks</span></div><divid="ID2RBSection"class="collapsibleSection"><p>
No more than <spanclass="parameter">size</span> bytes will be written. To get the full output, <spanclass="parameter">size</span> must be enough for the string and null-terminator.
</p><p>
No overlap is permitted between the regiom {<spanclass="parameter">buf</span>,<spanclass="parameter">size</span>} and the <spanclass="parameter">fmt</span> string.
</p><p>
Notice the return value is in ISO C99 snprintf style. This is so even if the C library vsnprintf is the older GLIBC 2.0.x style.
gmp_lib.mpf_clear(f)</pre></div><divid="ID0EDAABA_code_Div3"class="codeSnippetContainerCode"style="display: none"><p>No code example is currently available or this language may not be supported.</p></div><divid="ID0EDAABA_code_Div4"class="codeSnippetContainerCode"style="display: none"><p>No code example is currently available or this language may not be supported.</p></div></div></div><scripttype="text/javascript">AddLanguageTabSet("ID0EDAABA");</script></div><divclass="collapsibleAreaRegion"id="seeAlsoSection"><spanclass="collapsibleRegionTitle"onclick="SectionExpandCollapse('ID4RB')"onkeypress="SectionExpandCollapse_CheckKey('ID4RB', event)"tabindex="0"><imgid="ID4RBToggle"class="collapseToggle"src="../icons/SectionExpanded.png"/>See Also</span></div><divid="ID4RBSection"class="collapsibleSection"><h4class="subHeading">Reference</h4><divclass="seeAlsoStyle"><ahref="3af6b34c-3242-2b75-e7c7-ab79af8a4b0f.htm">gmp_lib Class</a></div><divclass="seeAlsoStyle"><ahref="d9c51b9f-0c54-770b-28ea-6eebd8fef368.htm">Math.Gmp.Native Namespace</a></div><divclass="seeAlsoStyle"><ahref="61686857-e4a0-ad60-1419-2b87a79b06c1.htm">gmp_snprintf</a></div><divclass="seeAlsoStyle"><ahref="3af6b34c-3242-2b75-e7c7-ab79af8a4b0f.htm"><ahref="/html/3af6b34c-3242-2b75-e7c7-ab79af8a4b0f.htm#Formatted_Output_Functions">Formatted Output Functions</a></a></div><divclass="seeAlsoStyle"><ahref="3af6b34c-3242-2b75-e7c7-ab79af8a4b0f.htm"><ahref="https://gmplib.org/manual/Formatted-Output-Functions.html#Formatted-Output-Functions">GNU MP - Formatted Output Functions</a></a></div><divclass="seeAlsoStyle"><ahref="3af6b34c-3242-2b75-e7c7-ab79af8a4b0f.htm"><ahref="https://gmplib.org/manual/Formatted-Output-Strings.html#Formatted-Output-Strings">GNU MP - Formatted Output Strings</a></a></div></div></div></div><divid="pageFooter"class="pageFooter"></div></body></html>