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_Realloc</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13<a name="dwc__memfunc_8h_19d490d1be6aee06cee99f6e554ac12b5"></a>
14<h1 align="left">DWC_Realloc</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_Realloc.html#dwc__memfunc_8h_19d490d1be6aee06cee99f6e554ac12b5>DWC_Realloc</a>(DWCAllocType name,
22                  void *ptr,
23                  u32 oldsize,
24                  u32 newsize);</CODE></PRE></dd>
25</dl>
26
27<h2>Arguments</h2>
28
29<TABLE border="1" width="100%">
30  <TBODY>
31
32    <TR>
33<TD width="13%"><EM><STRONG>name</STRONG></EM></TD>
34<TD width="87%">Information for library development. Specify 0.</TD>
35    </TR>
36
37    <TR>
38<TD width="13%"><EM><STRONG>ptr</STRONG></EM></TD>
39<TD width="87%">Pointer to the memory allocated using the memory allocation function specified by the <a href=DWC_Init.html><CODE>DWC_Init</CODE></a> function.</TD>
40    </TR>
41
42    <TR>
43<TD width="13%"><EM><STRONG>oldsize</STRONG></EM></TD>
44<TD width="87%">Information for library development. Specify 0.</TD>
45    </TR>
46
47    <TR>
48<TD width="13%"><EM><STRONG>newsize</STRONG></EM></TD>
49<TD width="87%">Memory size (in bytes) after making the change.</TD>
50    </TR>
51
52  </TBODY>
53</TABLE>
54
55<h2>Return Values</h2>
56
57<p>Returns a pointer to the memory newly allocated using the memory allocation function specified by <a href=DWC_Init.html><CODE>DWC_Init</CODE></a>.</p>
58
59<H2>Description</H2>
60<p>This function moves the memory (allocated using the memory allocation function specified by <a href=DWC_Init.html><CODE>DWC_Init</CODE></a>) after changing its size.</p><p>Once memory of a new size has been reserved in a different region, the library internally releases the original memory. When the <CODE><A href="DWC_Realloc.html">DWC_Realloc</a></CODE> function is used, 32 is assigned to the <CODE>align</CODE> argument in the memory allocation function.</p>
61
62<H2>Revision History</H2>
63<DL>
64
65</DL>
66<hr><p>CONFIDENTIAL</p></body>
67</html>
68