Welcome to mirror list, hosted at ThFree Co, Russian Federation.

snprintf.c « mingwex « mingw « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c8d2a7b2008961555c8eaff6290de8536ac61da2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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;
}