Older Newer
Fri, 21 Mar 2003 16:47:33 . . . . Martijn van der Lee [Indent]


Changes by last author:

Added:
= free =

== Syntax ==

:free(void* buffer)

== Arguments ==

:buffer

::A pointer to a previously allocated memory block.

== Description ==

:Frees the block of memory previously allocated specified by the pointer buffer.

:When specifying a NULL pointer, this function does nothing.

== Example ==

<code>

%ffp

OnFilterStart:

{

// Allocate a string for 255 characters.

char* buffer_1 = malloc(255);

free(buffer_1);

}

</code>

== Also see ==

:calloc, malloc, realloc