int freeHost(int bufferID)
Always returns true.
Frees a memory block previously allocated by the host application by using the allocHost function.
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); }