1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3<head> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<title>MIAllocatorFreeFunction</title> 8<link rel="stylesheet" href="../../css/nitro.css" type="text/css" /> 9</head> 10<body> 11<h1>MIAllocatorFreeFunction <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></h1> 12<h2>Definition</h2> 13 14<dl> 15 <dd> 16 <pre><code>#include <nitro/mi.h><br /> 17typedef void (*MIAllocatorFreeFunction)(void *userdata, void *buffer); 18</code></pre> 19 </dd> 20</dl> 21 22<h2>Arguments</h2> 23<table border="1" width="100%"> 24 <tbody> 25 <tr> 26 <td style="width:13%"><em><strong>userdata</strong></em></td> 27 <td style="width:87%">An arbitrary user-defined value specified with <a href="MI_InitAllocator.html"><CODE>MI_InitAllocator()</CODE></a>.<br /> 28 This is provided for the sake of convenience in implementing callback functions.</td> 29 </tr> 30 <tr> 31 <td style="width:13%"><em><strong>buffer</strong></em></td> 32 <td style="width:87%">Memory to be deallocated.</td> 33 </tr> 34 </tbody> 35</table> 36 37<h2>Return Values</h2> 38<p>None.</p> 39 40<h2>Description</h2> 41<p>This is a function prototype that represents the format of the callback used to free memory to the allocator.</p> 42<p>Use this format to implement a memory deallocation operation and specify your implementation in <a href="MI_InitAllocator.html"><CODE>MI_InitAllocator()</CODE></a>. 43</p> 44 45<h2>See Also</h2> 46<p><code><a href="MIAllocator.html">MIAllocator</a>, <a href="MIAllocatorAllocFunction.html">MIAllocatorAllocFunction</a> <br /> <a href="MI_InitAllocator.html">MI_InitAllocator</a>, <a href="MI_CallAlloc.html">MI_CallAlloc</a>, <a href="MI_CallFree.html">MI_CallFree</a></code></p> 47<h2>Revision History</h2> 48<p>2007/06/12 Initial version.</p> 49<hr><p>CONFIDENTIAL</p></body> 50</html> 51