Contents Previous Next

mxmlSetTextf()


Description

Set the value of a text node to a formatted string. The node is not changed if it is not a text node.

Syntax

int
mxmlSetTextf(
    mxml_node_t * node,
    int whitespace,
    const char * format,
    ...);

Arguments

NameDescription
nodeNode to set
whitespace1 = leading whitespace, 0 = no whitespace
formatPrintf-style format string
...Additional arguments as needed

Returns

0 on success, -1 on failure


Contents Previous Next