1 #include "dictP.h"
2 
3 #include <stdarg.h>
4 #include <stddef.h>
5 #include <maa.h>
6 #include <string.h>
7 
8 /*
9   partial vsnprintf implementation:
10   - size PARAMETER IS COMPLETELY IGNORED
11 */
12 
vsnprintf(char * str,size_t size,const char * format,va_list ap)13 int vsnprintf(char *str, size_t size, const char *format, va_list ap)
14 {
15    vsprintf (str, format, ap);
16 
17    if (strlen (str) >= size)
18       err_fatal( __func__, "Buffer too small\n" );
19 }
20