Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.2 KiB

  1. /***
  2. *fputwchr.c - write a wide character to stdout
  3. *
  4. * Copyright (c) 1993-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * defines _fputwchar(), putwchar() - write a wide character to stdout,
  8. * function version
  9. *
  10. *Revision History:
  11. * 04-26-93 CFW Module created.
  12. * 04-30-93 CFW Bring wide char support from fputchar.c.
  13. * 06-02-93 CFW Wide get/put use wint_t.
  14. * 02-07-94 CFW POSIXify.
  15. * 11-22-00 PML Wide-char *putwc* functions take a wchar_t, not wint_t.
  16. *
  17. *******************************************************************************/
  18. #ifndef _POSIX_
  19. #include <cruntime.h>
  20. #include <stdio.h>
  21. #include <tchar.h>
  22. /***
  23. *wint_t _fputwchar(ch), putwchar() - put a wide character to stdout
  24. *
  25. *Purpose:
  26. * Puts the given wide character to stdout. Function version of macro
  27. * putwchar().
  28. *
  29. *Entry:
  30. * wchar_t ch - character to output
  31. *
  32. *Exit:
  33. * returns character written if successful
  34. * returns WEOF if fails
  35. *
  36. *Exceptions:
  37. *
  38. *******************************************************************************/
  39. wint_t __cdecl _fputwchar (
  40. REG1 wchar_t ch
  41. )
  42. {
  43. return(putwc(ch, stdout));
  44. }
  45. #undef putwchar
  46. wint_t __cdecl putwchar (
  47. REG1 wchar_t ch
  48. )
  49. {
  50. return(_fputwchar(ch));
  51. }
  52. #endif /* _POSIX_ */