Function silc_srealloc
SYNOPSIS
void *silc_srealloc(SilcStack stack, SilcUInt32 old_size,
void *ptr, SilcUInt32 size);
DESCRIPTION
Change the size of the memory block indicated by `ptr' to the new
size of `size' bytes. The contents of `ptr' will not be changed.
If `ptr' is NULL the call is equivalent to silc_smalloc. If `size'
is zero (0) error will occur. Returns NULL on error and the old
pointer remain intact.
NOTES
This function reallocates successfully only if the previous allocation
to `stack' was `ptr'. If there was another memory allocation between
allocating `ptr' and this call, this routine will return NULL. The
NULL is also returned if the `size' does not fit to current stack
and allocating new block would require slow copying of the data. It
is ox2.gilc_packet_get_engine
silc_packet_set_context
silc_packet_get_context
silc_packet_set_keys
silc_packet_get_keys
silc_packet_set_ids
silc_packet_get_ids
silc_packet_set_sid
silc_packet_send
silc_packet_send_ext
silc_packet_send_va
silc_packet_send_va_ext
silc_packet_wait_init
silc_packet_wait_uninit
silc_packet_wait
silc_packet_free
|