summaryrefslogtreecommitdiff
path: root/src/stdio/fputs.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-05-28 12:34:30 -0400
committerJakob Kaivo <jkk@ung.org>2024-05-28 12:34:30 -0400
commitdb616c2d5cff8477336b318d889e02112fe97f9a (patch)
tree4827495015891d4492ac50e05c6fe2d430b194b0 /src/stdio/fputs.c
parente6ef806ef40a421435b1209f0f79d778c03fe04a (diff)
handle stream orientation behavior
Diffstat (limited to 'src/stdio/fputs.c')
-rw-r--r--src/stdio/fputs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdio/fputs.c b/src/stdio/fputs.c
index c4d32dec..87523b43 100644
--- a/src/stdio/fputs.c
+++ b/src/stdio/fputs.c
@@ -7,6 +7,7 @@
int fputs(const char * restrict s, FILE * restrict stream)
{
SIGNAL_SAFE(0);
+ ASSERT_STREAM(stream, ORIENT_BYTE, OP_OUTPUT);
ASSERT_NOOVERLAP(s, strlen(s), stream, sizeof(*stream));
flockfile(stream);