Contents Previous Next

mxmlNewTextf()


Description

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.

Syntax

mxml_node_t *
mxmlNewTextf(
    mxml_node_t * parent,
    int whitespace,
    const char * format,
    ...);

Arguments

NameDescription
parentParent node or MXML_NO_PARENT
whitespace1 = leading whitespace, 0 = no whitespace
formatPrintf-style frmat string
...Additional args as needed

Returns

New node


Contents Previous Next