silc_buffer_sformat

SYNOPSIS

    int silc_buffer_sformat(SilcStack stack, SilcBuffer dst, ...);

DESCRIPTION

Same as silc_buffer_format but uses `stack' to allocate the memory. if `stack' is NULL reverts back to silc_buffer_format call. Returns -1 if system is out of memory. Sets silc_errno in case of error.

Note that this call consumes the `stack'. The caller should push the stack before calling the function and pop it later.