<td>
the API handle </td></tr>
<tr><td valign=top><em>size</em>&nbsp;</td><td>
size in bytes of memory required</td></tr>
</table>
</dl>With syntax similar to malloc(), <a class="el" href="api_8c.html#a6">wmf_malloc()</a> allocates <code>size</code> bytes of memory and adds a reference to it in the memory manager's list. To free the memory, use <a class="el" href="api_8c.html#a9">wmf_free()</a>.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
Pointer to new memory, or zero on failure. Sets error state <b>wmf_