You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
mxml/www/docfiles/mxmlNewTextf.html

69 lines
2.3 KiB

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>Mini-XML Programmers Manual, Version 2.2.1</TITLE>
<META NAME="author" CONTENT="Michael Sweet">
<META NAME="copyright" CONTENT="Copyright 2003-2005">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
<LINK REL="Start" HREF="index.html">
<LINK REL="Contents" HREF="toc.html">
<LINK REL="Prev" HREF="mxmlNewText.html">
<LINK REL="Next" HREF="mxmlRemove.html">
<STYLE TYPE="text/css"><!--
BODY { font-family: serif }
H1 { font-family: sans-serif }
H2 { font-family: sans-serif }
H3 { font-family: sans-serif }
H4 { font-family: sans-serif }
H5 { font-family: sans-serif }
H6 { font-family: sans-serif }
SUB { font-size: smaller }
SUP { font-size: smaller }
PRE { font-family: monospace }
--></STYLE>
</HEAD>
<BODY>
<A HREF="toc.html">Contents</A>
<A HREF="mxmlNewText.html">Previous</A>
<A HREF="mxmlRemove.html">Next</A>
<HR NOSHADE>
<H3><A name="mxmlNewTextf">mxmlNewTextf()</A></H3>
<HR noshade/>
<H4>Description</H4>
<P>Create a new formatted text fragment node. The new text node is added
to the end of the specified parent's child list. The constant
MXML_NO_PARENT can be used to specify that the new text node has no
parent. The whitespace parameter is used to specify whether leading
whitespace is present before the node. The format string must be
nul-terminated and is formatted into the new node.</P>
<H4>Syntax</H4>
<PRE>
<A href="mxmlnodet.html#mxml_node_t">mxml_node_t</A> *
mxmlNewTextf(
<A href="mxmlnodet.html#mxml_node_t">mxml_node_t</A> * parent,
int whitespace,
const char * format,
...);
</PRE>
<H4>Arguments</H4>
<P class="table"></P>
<TABLE align="center" border="1" cellpadding="5" cellspacing="0" width="80%">
<THEAD></THEAD>
<TR bgcolor="#cccccc"><TH>Name</TH><TH>Description</TH></TR>
<TBODY></TBODY>
<TR><TD><TT>parent</TT></TD><TD>Parent node or MXML_NO_PARENT</TD></TR>
<TR><TD><TT>whitespace</TT></TD><TD>1 = leading whitespace, 0 = no
whitespace</TD></TR>
<TR><TD><TT>format</TT></TD><TD>Printf-style frmat string</TD></TR>
<TR><TD><TT>...</TT></TD><TD>Additional args as needed</TD></TR>
</TABLE>
<H4>Returns</H4>
<P>New node</P>
<!-- NEW PAGE -->
<HR NOSHADE>
<A HREF="toc.html">Contents</A>
<A HREF="mxmlNewText.html">Previous</A>
<A HREF="mxmlRemove.html">Next</A>
</BODY>
</HTML>