home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
vc98
/
crt
/
src
/
fputchar.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-06-17
|
1KB
|
48 lines
/***
*fputchar.c - write a character to stdout
*
* Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
*
*Purpose:
* defines _fputchar(), putchar() - write a character to stdout, function version
* defines _fputwchar(), putwchar() - write a wide character to stdout, function version
*
*******************************************************************************/
#include <cruntime.h>
#include <stdio.h>
/***
*int _fputchar(ch), putchar() - put a character to stdout
*
*Purpose:
* Puts the given characters to stdout. Function version of macro
* putchar().
*
*Entry:
* int ch - character to output
*
*Exit:
* returns character written if successful
* returns EOF if fails
*
*Exceptions:
*
*******************************************************************************/
int __cdecl _fputchar (
REG1 int ch
)
{
return(putc(ch, stdout));
}
#undef putchar
int __cdecl putchar (
int ch
)
{
return _fputchar(ch);
}