The vsnprintf() function is functionally equivalent to the snprintf() function except that the argument list has been replaced by a pointer to a list of arguments. And this pointer must be of type va_list. The va_list is defined in the header <stdarg.h>.
#include<stdio.h> #include>stdarg.h> int vsnprintf(char * restrict buf, size_t num, const char * restrict format, va_list arg_ptr);
© Copyright 2021. All Rights Reserved.