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_TVSScanf</TITLE>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">STD_TVSScanf <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 &lt;nitro/std.h&gt;<BR> <BR> int STD_TVSScanf( const char *src, const char *fmt, va_list vlist );<BR> <BR></CODE>
15</DL>
16<H2>Arguments</H2>
17<TABLE border="1">
18  <TBODY>
19    <TR>
20<TD><I><B>src</B></I></TD>
21<TD>Input string.</TD>
22    </TR>
23    <TR>
24<TD><I><B>fmt</B></I></TD>
25<TD>Input format string.</TD>
26    </TR>
27    <TR>
28<TD><I><B>vlist</B></I></TD>
29<TD>List containing a variable number of arguments.</TD>
30    </TR>
31  </TBODY>
32</TABLE>
33<H2>Return Values</H2>
34<P>Returns the number of times format conversion was successful and the converted format was actually substituted.</P>
35<P>When the end of <SPAN class="argument">src</SPAN> is reached without making even one successful format conversion, this function returns -1.</P>
36
37<H2>Description</H2>
38<P>This function simplifies the format string.</P>
39<P>This function operates identically to the <CODE>vsscanf</CODE> function with regard to the following features.</P>
40<BLOCKQUOTE>
41- Integer conversion (<CODE>d, i, o, u, x, X, p</CODE>)<BR>- Characters or strings (<CODE>c, s</CODE>)<BR>- Getting scan positions (<CODE>n</CODE>)<BR>- Character classes (<CODE>[]</CODE>)<BR>
42</BLOCKQUOTE>
43<P>This function is compiled with weak symbols. Therefore, you can overwrite them with your own function definitions.<BR><BR><FONT color=#ff0000> However, this function may be used by TWL-SDK functions, high-level libraries, middleware, and other sources, so be careful not to change its behavior when you overwrite it.</FONT>
44</P>
45<H2>See Also</H2>
46<P><A href="STD_TSScanf.html"><CODE>STD_TSScanf</CODE></A><br> <A href="../../os/debug/OS_VSNPrintf.html"><CODE>OS_VSNPrintf</CODE></A></P>
47<H2>Revision History</H2>
48<P>
492009/03/27 Added notes related to weak symbols and user-defined functions. <BR>2006/11/16 Added character classes to the supported format. <BR>2005/10/25 Initial version.
50</P>
51<hr><p>CONFIDENTIAL</p></body>
52</HTML>
53