summaryrefslogtreecommitdiff
path: root/src/wchar/fwide.c
blob: 4dc965be8b55b97ab69e951ba12e27fb52258152 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <wchar.h>
#include <stdio.h>
#include "stdio/_stdio.h"
#include "_safety.h"

int fwide(FILE * stream, int mode)
{
	SIGNAL_SAFE(0);

	ASSERT_STREAM(stream, 0, 0);

	if (mode != 0) {
		if (mode < 0) {
			stream->orientation = ORIENT_BYTE;
		} else if (mode > 0) {
			stream->orientation = ORIENT_WIDE;
		}
	}
	return stream->orientation;
}

/*
STDC(199409)
*/