Function silc_smalloc_ua
SYNOPSIS
void *silc_smalloc_ua(SilcStack stack, SilcUInt32 size);
DESCRIPTION
Allocate unaligned memory block of size of `size' from the stack
indicated by `stack' and return pointer to it. Returns NULL on error.
NOTES
This function must not be used to allocate memory for structures.
Use this function only for strings and data buffers.
Be careful with this function: do not free the returned pointer
explicitly and do not save the returned pointer to a permanent
location.
If `stack' is NULL this function calls silc_malloc.
|