summaryrefslogtreecommitdiff
path: root/src/stdio/fsetpos.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-06-07 14:50:18 -0400
committerJakob Kaivo <jkk@ung.org>2024-06-07 14:50:18 -0400
commitfd466889b49dfe528567587183c2aedd27836f27 (patch)
tree02802cd3785b46a627530427d0e8774742754a7a /src/stdio/fsetpos.c
parentc195cb021ead7de765a0b37f5ab793802be46731 (diff)
split formatted I/O header, unify undefined behavior reporting with UNDEFINED_FMT() macro
Diffstat (limited to 'src/stdio/fsetpos.c')
-rw-r--r--src/stdio/fsetpos.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdio/fsetpos.c b/src/stdio/fsetpos.c
index c75fed41..f4aaf71c 100644
--- a/src/stdio/fsetpos.c
+++ b/src/stdio/fsetpos.c
@@ -6,6 +6,8 @@
int fsetpos(FILE *stream, const fpos_t *pos)
{
SIGNAL_SAFE(0);
+ ASSERT_STREAM(stream, 0, 0);
+ ASSERT_FPOS(stream, pos);
ASSERT_NOOVERLAP(stream, sizeof(*stream), pos, sizeof(*pos));
(void)stream; (void)pos;