summaryrefslogtreecommitdiff
path: root/src/stdio/fscanf_s.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/fscanf_s.c')
-rw-r--r--src/stdio/fscanf_s.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/stdio/fscanf_s.c b/src/stdio/fscanf_s.c
index a0b40ba7..28f292b3 100644
--- a/src/stdio/fscanf_s.c
+++ b/src/stdio/fscanf_s.c
@@ -4,13 +4,11 @@
/** read formatted input from a file stream **/
int fscanf_s(FILE * restrict stream, const char * restrict format, ...)
{
- __C_EXT(1, 201112L);
- int retval;
- va_list ap;
- va_start(ap, format);
- retval = vfscanf_s(stream, format, ap);
- va_end(ap);
- return retval;
+ va_list ap;
+ va_start(ap, format);
+ int ret = vfscanf_s(stream, format, ap);
+ va_end(ap);
+ return ret;
}
/***