home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / fputwchr.c < prev    next >
C/C++ Source or Header  |  1998-06-17  |  1KB  |  51 lines

  1. /***
  2. *fputwchr.c - write a wide character to stdout
  3. *
  4. *       Copyright (c) 1993-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       defines _fputwchar(), putwchar() - write a wide character to stdout,
  8. *       function version
  9. *
  10. *******************************************************************************/
  11.  
  12.  
  13. #include <cruntime.h>
  14. #include <stdio.h>
  15. #include <tchar.h>
  16.  
  17. /***
  18. *wint_t _fputwchar(ch), putwchar() - put a wide character to stdout
  19. *
  20. *Purpose:
  21. *       Puts the given wide character to stdout.  Function version of macro
  22. *       putwchar().
  23. *
  24. *Entry:
  25. *       wint_t ch - character to output
  26. *
  27. *Exit:
  28. *       returns character written if successful
  29. *       returns WEOF if fails
  30. *
  31. *Exceptions:
  32. *
  33. *******************************************************************************/
  34.  
  35. wint_t __cdecl _fputwchar (
  36.         REG1 wint_t ch
  37.         )
  38. {
  39.         return(putwc(ch, stdout));
  40. }
  41.  
  42. #undef putwchar
  43.  
  44. wint_t __cdecl putwchar (
  45.         REG1 wint_t ch
  46.         )
  47. {
  48.         return(_fputwchar(ch));
  49. }
  50.  
  51.