Leaked source code of windows server 2003
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.

43 lines
802 B

  1. //----------------------------------------------------------------------------
  2. //
  3. // Copyright (c) 1997-1999 Microsoft Corporation
  4. // All rights reserved.
  5. //
  6. // File Name:
  7. // fileio.c
  8. //
  9. // Description:
  10. // Isolate CRT fileio stuff so any necessary character translation can
  11. // be done easily. Some of these are implemented as macros in supplib.h
  12. //
  13. //----------------------------------------------------------------------------
  14. #include "pch.h"
  15. FILE*
  16. My_fopen(
  17. LPWSTR FileName,
  18. LPWSTR Mode
  19. )
  20. {
  21. return _wfopen(FileName, Mode);
  22. }
  23. int
  24. My_fputs(
  25. LPWSTR Buffer,
  26. FILE* fp
  27. )
  28. {
  29. return fputws(Buffer, fp);
  30. }
  31. LPWSTR
  32. My_fgets(
  33. LPWSTR Buffer,
  34. int MaxChars,
  35. FILE* fp
  36. )
  37. {
  38. return fgetws(Buffer, MaxChars, fp);
  39. }