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_AllocEx</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13<a name="dwc__memfunc_8h_10be7843a0c0d09583ec57794f5109e80"></a>
14<h1 align="left">DWC_AllocEx</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_AllocEx.html#dwc__memfunc_8h_10be7843a0c0d09583ec57794f5109e80>DWC_AllocEx</a>(DWCAllocType name,
22                  u32 size,
23                  int align);</CODE></PRE></dd>
24</dl>
25
26<h2>Arguments</h2>
27
28<TABLE border="1" width="100%">
29  <TBODY>
30
31    <TR>
32<TD width="13%"><EM><STRONG>name</STRONG></EM></TD>
33<TD width="87%">Information for library development. Specify 0.</TD>
34    </TR>
35
36    <TR>
37<TD width="13%"><EM><STRONG>size</STRONG></EM></TD>
38<TD width="87%">Size (in bytes) of the memory you wish to allocate.</TD>
39    </TR>
40
41    <TR>
42<TD width="13%"><EM><STRONG>align</STRONG></EM></TD>
43<TD width="87%">Alignment (in bytes) of the memory to be reserved. This is passed to the memory allocation function that was set using the <CODE><a href=DWC_Init.html>DWC_Init</a></CODE> function.</TD>
44    </TR>
45
46  </TBODY>
47</TABLE>
48
49<h2>Return Values</h2>
50
51<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>
52
53<H2>Description</H2>
54<p>Allocates memory using the memory allocation function specified by <a href=DWC_Init.html><CODE>DWC_Init</CODE></a>.</p><p>When the <A href="DWC_AllocEx.html"><CODE>DWC_AllocEx</CODE></a> function is used, the <CODE>align</CODE> argument from this function is passed to the <CODE>align</CODE> argument in the memory allocation function.</p>
55
56<H2>Revision History</H2>
57<DL>
58
59</DL>
60<hr><p>CONFIDENTIAL</p></body>
61</html>
62