mirror of
https://github.com/encounter/osdev.git
synced 2026-03-30 11:33:54 -07:00
10 lines
215 B
C
10 lines
215 B
C
#include <stdio.h>
|
|
|
|
int snprintf(char *restrict s, size_t n, const char *restrict fmt, ...) {
|
|
int ret;
|
|
va_list ap;
|
|
va_start(ap, fmt);
|
|
ret = vsnprintf(s, n, fmt, ap);
|
|
va_end(ap);
|
|
return ret;
|
|
} |