diff options
author | Jakob Kaivo <jkk@ung.org> | 2024-06-07 14:50:18 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2024-06-07 14:50:18 -0400 |
commit | fd466889b49dfe528567587183c2aedd27836f27 (patch) | |
tree | 02802cd3785b46a627530427d0e8774742754a7a /src/stdio/__scanf.c | |
parent | c195cb021ead7de765a0b37f5ab793802be46731 (diff) |
split formatted I/O header, unify undefined behavior reporting with UNDEFINED_FMT() macro
Diffstat (limited to 'src/stdio/__scanf.c')
-rw-r--r-- | src/stdio/__scanf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stdio/__scanf.c b/src/stdio/__scanf.c index 5e43303e..f39fdfc0 100644 --- a/src/stdio/__scanf.c +++ b/src/stdio/__scanf.c @@ -5,7 +5,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include "_stdio.h" +#include "_format.h" #include "_safety.h" #pragma GCC diagnostic ignored "-Wint-conversion" @@ -129,6 +129,7 @@ int __scanf(struct io_options *opt, const char * format, va_list arg) struct io_conversion conv = { .func = opt->fnname, .dir = IO_IN, + .fmt = format, }; if (isspace(*format)) { |