1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>STD_TSNPrintf</TITLE> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">STD_TSNPrintf <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></h1> 12<h2>Syntax</h2> 13<DL> 14 <DD><CODE>#include <nitro/std.h><BR> <BR> int STD_TSNPrintf( char *dst, size_t len, const char *fmt, ... );<BR> <BR></CODE> 15</DL> 16<H2>Arguments</H2> 17<TABLE border="1"> 18 <TBODY> 19 <TR> 20 <TD><I><B>dst</B></I></TD> 21 <TD>Storage destination buffer for the output string.</TD> 22 </TR> 23 <TR> 24 <TD><I><B>len</B></I></TD> 25 <TD>Storage destination buffer size for the output string.</TD> 26 </TR> 27 <TR> 28 <TD><I><B>fmt</B></I></TD> 29 <TD>Output format string.</TD> 30 </TR> 31 <TR> 32 <TD><I><B>...</B></I></TD> 33 <TD>Variable number of arguments</TD> 34 </TR> 35 </TBODY> 36</TABLE> 37<H2>Return Values</H2> 38<P>Returns the number of characters with the format string output properly. The termination character ( <code>\0</code> ) is not included in this number.</P> 39<H2>Description</H2> 40<P>This function returns the simplified version of the format string.</P> 41<P>With the exception of a difference in argument format, this function is equivalent to <A href="STD_TVSNPrintf.html"><CODE>STD_TVSNPrintf()</CODE></A>.</P> 42<P>This function is compiled with weak symbols. Therefore, you can overwrite them with your own function definitions.</P> 43<H2>See Also</H2> 44<P><CODE><A href="STD_TSPrintf.html">STD_TSPrintf</A> <A href="STD_TVSPrintf.html">STD_TVSPrintf</A> <A href="STD_TVSNPrintf.html">STD_TVSNPrintf</A> </CODE></P> 45<H2>Revision History</H2> 46<P> 472007/04/20 Initial version. 48</P> 49<hr><p>CONFIDENTIAL</p></body> 50</HTML> 51