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.
50 lines
1.7 KiB
50 lines
1.7 KiB
18 years ago
|
<!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.3</TITLE>
|
||
|
<META NAME="author" CONTENT="Michael R. Sweet">
|
||
|
<META NAME="copyright" CONTENT="Copyright 2003-2007">
|
||
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||
|
<LINK REL="Start" HREF="index.html">
|
||
|
<LINK REL="Contents" HREF="index.html">
|
||
|
<LINK REL="Prev" HREF="ChangingNodeValues.html">
|
||
|
<LINK REL="Next" HREF="Indexing.html">
|
||
|
<STYLE TYPE="text/css"><!--
|
||
|
BODY { font-family: sans-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 }
|
||
|
A { text-decoration: none }
|
||
|
--></STYLE>
|
||
|
</HEAD>
|
||
|
<BODY>
|
||
|
<A HREF="index.html">Contents</A>
|
||
|
<A HREF="ChangingNodeValues.html">Previous</A>
|
||
|
<A HREF="Indexing.html">Next</A>
|
||
|
<HR NOSHADE>
|
||
|
<H2><A NAME="4_5">Formatted Text</A></H2>
|
||
|
<P>The <A href="mxmlNewTextf.html#mxmlNewTextf"><TT>mxmlNewTextf()</TT></A>
|
||
|
and <A href="mxmlSetTextf.html#mxmlSetTextf"><TT>mxmlSetTextf()</TT></A>
|
||
|
functions create and change text nodes, respectively, using <TT>printf</TT>
|
||
|
-style format strings and arguments. For example, use the following
|
||
|
function call to create a new text node containing a constructed
|
||
|
filename:</P>
|
||
|
<PRE>
|
||
|
mxml_node_t *node;
|
||
|
|
||
|
node = mxmlNewTextf(node, 1, "%s/%s",
|
||
|
path, filename);
|
||
|
</PRE>
|
||
|
<HR NOSHADE>
|
||
|
<A HREF="index.html">Contents</A>
|
||
|
<A HREF="ChangingNodeValues.html">Previous</A>
|
||
|
<A HREF="Indexing.html">Next</A>
|
||
|
</BODY>
|
||
|
</HTML>
|