SilcSnprintfRender
SYNOPSIS
typedef char *(*SilcSnprintfRender)(void *data);
DESCRIPTION
Snprintf rendering function. This function can be used with '%@' formatting character. The `data' is rendered into a string and allocated string is returned. If NULL is returned the rendering is skipped and ignored. If the returned string does not fit to the destination buffer it may be truncated.
EXAMPLE
char *id_render(void *data) { ...render... return id_string; } // Call id_render function to render the 'client_id'. silc_snprintf(buf, sizeof(buf), "Client ID %@", id_render, client_id);