rework langinfo code for ABI compat and for use by time code
[musl] / src / stdio / vsnprintf.c
index ba17bd7..be2c44e 100644 (file)
@@ -1,4 +1,8 @@
 #include "stdio_impl.h"
+#include <limits.h>
+#include <string.h>
+#include <errno.h>
+#include <stdint.h>
 
 static size_t sn_write(FILE *f, const unsigned char *s, size_t l)
 {
@@ -10,7 +14,7 @@ static size_t sn_write(FILE *f, const unsigned char *s, size_t l)
        return l;
 }
 
-int vsnprintf(char *s, size_t n, const char *fmt, va_list ap)
+int vsnprintf(char *restrict s, size_t n, const char *restrict fmt, va_list ap)
 {
        int r;
        char b;