blob: 30206e4af84d7cc2035e10279aee151ae3867127 [file] [log] [blame]
Kai Tietzc8c94d82007-08-20 14:22:43 +00001/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
5 */
Kai Tietz518dd332007-08-10 09:54:15 +00006#include <stdarg.h>
7#include <stdio.h>
8
9int snprintf(char* buffer, size_t n, const char* format, ...)
10{
11 int retval;
12 va_list argptr;
13
14 va_start( argptr, format );
15 retval = _vsnprintf( buffer, n, format, argptr );
16 va_end( argptr );
17 return retval;
18}