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 7.0.0.0 for Windows">
8<title>DWC_Alloc</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13<a name="dwc__memfunc_8h_1aff2b5d03b69fa0cc6b5cea82e5cbdd4"></a>
14<h1 align="left">DWC_Alloc</h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;dwc.h&gt;</CODE><BR>
20  <BR>
21  <PRE><CODE>void* <a href=DWC_Alloc.html#dwc__memfunc_8h_1aff2b5d03b69fa0cc6b5cea82e5cbdd4>DWC_Alloc</a>(DWCAllocType name,
22                u32 size);</CODE></PRE></dd>
23</dl>
24
25<h2>Arguments</h2>
26
27<TABLE border="1" width="100%">
28  <TBODY>
29
30    <TR>
31<TD width="13%"><EM><STRONG>name</STRONG></EM></TD>
32<TD width="87%">Information for library development. Specify 0.</TD>
33    </TR>
34
35    <TR>
36<TD width="13%"><EM><STRONG>size</STRONG></EM></TD>
37<TD width="87%">Size (in bytes) of the memory you wish to allocate.</TD>
38    </TR>
39
40  </TBODY>
41</TABLE>
42
43<h2>Return Values</h2>
44
45<p>Returns a pointer to the memory allocated using the memory allocation function specified by <a href=DWC_Init.html><CODE>DWC_Init</CODE></a>.</p>
46
47<H2>Description</H2>
48<p>Allocates memory using the memory allocation function specified by <a href=DWC_Init.html><CODE>DWC_Init</CODE></a>.</p><p>When the <CODE>DWC_Alloc</CODE> function is used, 32 is passed to the <CODE>align</CODE> argument in the memory allocation function. </p>
49
50<H2>Revision History</H2>
51<DL>
52
53</DL>
54<hr><p>CONFIDENTIAL</p></body>
55</html>
56