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="Microsoft FrontPage 5.0">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<TITLE>OSFree</TITLE>
9</HEAD>
10<BODY>
11<H1>OSFree</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/os.h&gt;
16
17void OSFree(void* ptr);
18</pre></dd></dl>
19
20<H2>Arguments</H2>
21<TABLE class="arguments" border="1" >
22  <TBODY>
23    <TR>
24<TH>ptr</TH>
25<TD>Non-null pointer to the object previously allocated by the <A href="OSAlloc.html"><CODE>OSAlloc</CODE></A> or <A href="OSAllocFromHeap.html"><CODE>OSAllocFromHeap</CODE></A> function</TD>
26    </TR>
27  </TBODY>
28</TABLE>
29
30<H2>Return Values</H2>
31<P>None.</P>
32
33<H2>Description</H2>
34<P>Although this function is provided for the sake of compatibility, we recommend using the MEM library.</P>
35<P>Deallocates memory referred to by <SPAN class="argument">ptr</SPAN>, a pointer to the current heap.</P>
36
37<H2>See Also</H2>
38<P class="reference">
39<A href="../toc.html#Memory Allocation" target="contents">Memory Allocation Functions</A>,
40<A href="OSAlloc.html">OSAlloc</A>,
41<A href="OSAllocFromHeap.html">OSAllocFromHeap</A>,
42<A href="OSSetCurrentHeap.html">OSSetCurrentHeap</A>
43</P>
44
45<H2>Revision History</H2>
46<P>
472006/03/01 Initial version.<br>
48</P>
49
50<hr><p>CONFIDENTIAL</p></body>
51</HTML>