summaryrefslogtreecommitdiff
path: root/com32/lib/snprintf.c
blob: c642851b2f976dd28a7ee19a0b6900604d122efb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * snprintf.c
 */

#include <stdio.h>

int snprintf(char *buffer, size_t n, const char *format, ...)
{
  va_list ap;
  int rv;

  va_start(ap, format);
  rv = vsnprintf(buffer, n, format, ap);
  va_end(ap);
  return rv;
}