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<H2>C Specification</H2> 13<DL> 14 <DD> 15<PRE><CODE>#include <revolution/os.h></CODE></PRE> 16 <DD> 17<PRE><code>void OSFree(void* ptr);</code></PRE> 18</DL> 19<H2>Arguments</H2> 20<TABLE border="1" cellpadding="3" cellspacing="0.1"> 21 <TBODY> 22 <TR> 23<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><code><EM><STRONG>ptr</STRONG></EM></code></CODE></STRONG></EM></TD> 24<TD width="520">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> 25 </TR> 26 </TBODY> 27</TABLE> 28<H2>Return Values</H2> 29<P>None.</P> 30<H2>Description</H2> 31<P>Although this function is provided for compatibility's sake, we recommend using the MEM library. </P> 32<P>Deallocates memory referenced by the pointer to the current heap <code><strong><em>ptr</em></strong></code>.</P> 33 34<H2>See Also</H2> 35<P><a href="../toc.html#Memory Allocation" target="contents">Memory Allocation Functions</a>, <a href="OSAlloc.html"><code>OSAlloc</code></a>, <a href="OSAllocFromHeap.html"><code>OSAllocFromHeap</code></a>, <a href="OSSetCurrentHeap.html"><code>OSSetCurrentHeap</code></a></P> 36<H2>Revision History</H2> 37<P>2006/03/01 Initial version.</P> 38<hr> 39<P>CONFIDENTIAL</p> 40</BODY> 41</HTML>