summaryrefslogtreecommitdiffstats
path: root/private/crt32/stdio/fputwchr.c
blob: 83587a506c06657456e1280930febf6a2bcfb6f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/***
*fputwchr.c - write a wide character to stdout
*
*	Copyright (c) 1993, Microsoft Corporation. All rights reserved.
*
*Purpose:
*	defines _fputwchar(), putwchar() - write a wide character to stdout,
*	function version
*
*Revision History:
*	04-26-93  CFW	Module created.
*	04-30-93  CFW	Bring wide char support from fputchar.c.
*	06-02-93  CFW	Wide get/put use wint_t.
*
*******************************************************************************/

#include <cruntime.h>
#include <stdio.h>
#include <tchar.h>

/***
*wint_t _fputwchar(ch), putwchar() - put a wide character to stdout
*
*Purpose:
*	Puts the given wide character to stdout.  Function version of macro
*	putwchar().
*
*Entry:
*	wint_t ch - character to output
*
*Exit:
*	returns character written if successful
*	returns WEOF if fails
*
*Exceptions:
*
*******************************************************************************/

wint_t _CRTAPI1 _fputwchar (
	REG1 wint_t ch
	)
{
	return(putwc(ch, stdout));
}

#undef putwchar

wint_t _CRTAPI1 putwchar (
	REG1 wint_t ch
	)
{
	return(_fputwchar(ch));
}