Make snprintf() and vsnprintf() conform to C99.

This commit is contained in:
Keith Marshall
2007-08-25 13:49:37 +00:00
parent 80bed8e0a4
commit 01cd95204e
6 changed files with 41 additions and 26 deletions

View File

@ -1,13 +0,0 @@
#include <stdarg.h>
#include <stdio.h>
int snprintf(char* buffer, size_t n, const char* format, ...)
{
int retval;
va_list argptr;
va_start( argptr, format );
retval = _vsnprintf( buffer, n, format, argptr );
va_end( argptr );
return retval;
}