/* See the vsnprintf() documentation for format string extensions over C99.  */
int vscnprintf(char *buf, size_t size, const char *fmt, va_list args)
/* See the vsnprintf() documentation for format string extensions over C99.  */
int vscnprintf(char *buf, size_t size, const char *fmt, va_list args)
{
	int i;
	i = vsnprintf(buf, size, fmt, args);
	return (i >= size) ? (size - 1) : i;
}