summaryrefslogtreecommitdiff
path: root/src/stdio/fscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/fscanf.c')
-rw-r--r--src/stdio/fscanf.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/stdio/fscanf.c b/src/stdio/fscanf.c
index 17d0c038..98dbeed1 100644
--- a/src/stdio/fscanf.c
+++ b/src/stdio/fscanf.c
@@ -1,5 +1,3 @@
-#if 0
-
#include <stdarg.h>
#include <stdio.h>
#include "_stdio.h"
@@ -11,6 +9,9 @@ int fscanf(FILE * restrict stream, const char * restrict format, ...)
int ret = 0;
va_list ap;
struct io_options opt = {0};
+
+ SIGNAL_SAFE(0);
+
opt.fnname = "fscanf";
opt.stream = stream;
va_start(ap, format);
@@ -31,6 +32,3 @@ the variadic arguments is the same as that for FUNCTION(scanf).
/*
STDC(1)
*/
-
-
-#endif