

#include <stdio.h>
#include <stdarg.h>
#include "windows.h"

void strfromd (char* dest, int len, char *fmt,...) {
	va_list args;

	va_start (args, fmt);
	vsnprintf (dest, len-1, fmt, args);
	va_end (args);
	dest[len-1] = 0;
}
