summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_delete_.rst
blob: c441801d25769f3d54fccd7a4a60d01c63420323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PR_DELETE
=========


Allocates memory of a specified size from the heap.


Syntax
------

.. code::

   #include <prmem.h>

   void PR_DELETE(_ptr);


Parameter
~~~~~~~~~

``_ptr``
   The address of memory to be returned to the heap. Must be an lvalue
   (an expression that can appear on the left side of an assignment
   statement).


Returns
~~~~~~~

Nothing.


Description
-----------

This macro returns allocated memory to the heap from the specified
location and sets ``_ptr`` to ``NULL``.