1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3
4<HEAD>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows">
8
9<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
10
11	<TITLE>MEMInitAllocatorForUnitHeap</TITLE>
12
13</HEAD>
14
15
16<BODY>
17
18
19<H1>MEMInitAllocatorForUnitHeap</H1>
20
21<H2>Syntax</H2>
22<DL><DD><PRE class="construction">
23#include &lt;revolution/mem.h&gt;
24
25void MEMInitAllocatorForUnitHeap(
26                        MEMAllocator*    pAllocator,
27                        MEMHeapHandle    heap );
28</PRE></DD></DL>
29
30<H2>Arguments</H2>
31<TABLE class="arguments" border="1">
32  <TR>
33<TH><STRONG><EM><CODE>pAllocator</CODE></EM></STRONG></TH>
34<TD>Address of the <CODE>MemAllocator</CODE> structure</TD>
35  </TR>
36  <TR>
37<TH><STRONG><EM><CODE>heap</CODE></EM></STRONG></TH>
38<TD>Unit heap handle.</TD>
39  </TR>
40</TABLE>
41
42<H2>Return Values</H2>
43<P>None.</P>
44
45<H2>Description</H2>
46<P>Initializes the allocator to allocate and deallocate memory from the unit heap.</P>
47<P>It is not possible to allocate a memory block that is larger than the memory block size set in the specified unit heap. In such a case, the <A href="MEMAllocFromAllocator.html"><code>MEMAllocFromAllocator</code></A> function returns <CODE>NULL</CODE>.</P>
48
49<H2>See Also</H2>
50<P class="reference">
51<A href="MEMInitAllocatorForFrmHeap.html">MEMInitAllocatorForFrmHeap</A>,
52<A href="MEMInitAllocatorForExpHeap.html">MEMInitAllocatorForExpHeap</A>,
53<A href="MEMInitAllocatorForOSHeap.html">MEMInitAllocatorForOSHeap</A>
54</P>
55
56<H2>Revision History</H2>
57<P>
582006/03/01 Initial version.<BR>
59</P>
60
61<hr><p>CONFIDENTIAL</p></body>
62</HTML>
63