summaryrefslogtreecommitdiff
path: root/riscv/riscv-probe/libfemto/std/snprintf.c
blob: 02281955c9f3af1d1e9c71cee9f6b47679d48e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// See LICENSE for license details.

#include <stdio.h>
#include <stddef.h>
#include <stdarg.h>

int snprintf(char* out, size_t n, const char* s, ...)
{
    va_list vl;
    va_start(vl, s);
    int res = vsnprintf(out, n, s, vl);
    va_end(vl);
    return res;
}