54 lines
1.1 KiB
C
54 lines
1.1 KiB
C
/***
|
|
*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));
|
|
}
|