ign=top><em>str</em>&nbsp;</td><td>
a string</td></tr>
</table>
</dl>With syntax similar to strdup(), <a class="el" href="api_8c.html#a11">wmf_strdup()</a> allocates the necessary memory via <a class="el" href="api_8c.html#a6">wmf_malloc()</a> and copies the string. Use <a class="el" href="api_8c.html#a9">wmf_free()</a> to free the string.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Pointer to new string, or zero on failure. Sets error state <b>wmf_E_InsMem</b> on failure, or <b>wmf_E_Glitch</b> if str is