summaryrefslogtreecommitdiff
path: root/src/wchar/fwide.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wchar/fwide.c')
-rw-r--r--src/wchar/fwide.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/wchar/fwide.c b/src/wchar/fwide.c
new file mode 100644
index 00000000..a1401a42
--- /dev/null
+++ b/src/wchar/fwide.c
@@ -0,0 +1,18 @@
+#include <wchar.h>
+#include "stdio.h"
+#include "nonstd/io.h"
+#include "nonstd/assert.h"
+
+int fwide(FILE * stream, int mode)
+{
+ ASSERT_NONNULL(stream);
+
+ if (stream->orientation == 0) {
+ stream->orientation = mode;
+ }
+ return stream->orientation;
+}
+
+/*
+STDC(199409)
+*/