rework langinfo code for ABI compat and for use by time code
[musl] / src / stdio / scanf.c
index a04a440..a740056 100644 (file)
@@ -1,7 +1,8 @@
 #include <stdio.h>
 #include <stdarg.h>
+#include "libc.h"
 
-int scanf(const char *fmt, ...)
+int scanf(const char *restrict fmt, ...)
 {
        int ret;
        va_list ap;
@@ -10,3 +11,5 @@ int scanf(const char *fmt, ...)
        va_end(ap);
        return ret;
 }
+
+weak_alias(scanf,__isoc99_scanf);