[Top] [Prev] [Next] [Bottom]
[Contents]
SaFree
Frees the memory for the requested chunk if it is on the free list. Sapphire will "garbage collect" the memory after the current request is handled. This frees the memory immediately and removes it from the free list.
#include "SaRnHtml.h"
int SaFree SUTPROTO((void* val));
Arguments
- val
- Pointer to memory chunk to free.
Return Values
Returns the value 0 if the memory is on the Sapphire free list; otherwise, returns 1.
Frees the memory for the requested chunk if it is on the free list. Sapphire will "garbage collect" the memory after the current request is handled. This frees the memory immediately and removes it from the free list.
char* str;
str = (char*) SaMalloc(1024);
...
SaFree(str);
See Also
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.