Older Newer
Wed, 18 Dec 2019 02:46:36 . . . . SyneRyder [Initial function definition]


Changes by last author:

Added:
= freeHost =

== Syntax ==

int freeHost(int bufferID)

== Arguments ==

:bufferID

::The ID of the memory buffer to be freed.

== Return ==

Always returns true.

== Description ==

Frees a memory block previously allocated by the host application by using the allocHost function.

== Example ==

<code>

int bufferID = allocHost(100);

if (bufferID == NULL) {

Warn("Could not allocate memory");

}

else {

char* memptr = lockHost(bufferID);

sprintf(memptr, "Message goes here!");

Info(memptr);

freeHost(bufferID);

}

</code>

== See Also ==

allocHost, lockHost