Programming Guide |
Allocate memory
VOIDPTR sm_fmalloc(unsigned size);
- size
- Number of bytes of memory to allocate.
- . · The value returned by
malloc
.
- · the null pointer if size is zero or if the call to
malloc
failed.
.If size is not zero, the C library function
malloc
is called and the value it returns is returned. Memory allocated by calling sm_fmalloc should be freed by calling sm_ffree.