#include "dictP.h"

#include <stdarg.h>
#include <stddef.h>
#include <maa.h>
#include <string.h>

/*
  partial snprintf implementation:
  - size PARAMETER IS COMPLETELY IGNORED
*/

int snprintf(char *str, size_t size, const char *format, ...)
{
   va_list ap;

   va_start (ap, format);
   vsprintf (str, format, ap);
   va_end (ap);

   if (strlen (str) >= size)
      err_fatal( __FUNCTION__, "Buffer too small\n" );
}


syntax highlighted by Code2HTML, v. 0.9.1