silc_stack_malloc

SYNOPSIS

    void *silc_stack_malloc(SilcStack stack, SilcUInt32 size);

DESCRIPTION

Low level memory allocation routine. Allocates memory block of size of `size' from the `stack'. The allocated memory is aligned so it can be used to allocate memory for structures, for example. Returns the allocated memory address or NULL if memory could not be allocated from the `stack'.

NOTES

This function should be used only if low level memory allocation with SilcStack is needed. Instead, silc_smalloc and silc_scalloc could be used.