safecrt_output_s.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // Copyright (c) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE file in the project root for full license information.
  4. //
  5. /***
  6. *safecrt_output_s.c - implementation of the _output family for safercrt.lib
  7. *
  8. *
  9. *Purpose:
  10. * This file contains the implementation of the _output family for safercrt.lib.
  11. *
  12. *Revision History:
  13. * 07-08-04 SJ Stub module created.
  14. * 07-13-04 AC Added support for floating-point types.
  15. * 07-29-04 AC Added macros for a safecrt version of mctowc and wctomb, which target ntdll.dll or msvcrt.dll
  16. * based on the _NTSUBSET_ #define
  17. * 09-24-04 MSL Prefix disallow NULL deref
  18. *
  19. ****/
  20. #define _SAFECRT_IMPL
  21. #define __STDC_LIMIT_MACROS
  22. #ifndef _LIBSAFECRT_SGX_CONFIG
  23. #include "pal/palinternal.h"
  24. #endif
  25. #include <string.h>
  26. #include <errno.h>
  27. #include <limits.h>
  28. #include <stdlib.h>
  29. #include "internal_securecrt.h"
  30. #include "mbusafecrt_internal.h"
  31. #define FORMAT_VALIDATIONS
  32. #define _CFLTCVT _safecrt_cfltcvt
  33. #define _TCHAR CRT_TCHAR
  34. #define TCHAR CRTTCHAR
  35. typedef char _TCHAR;
  36. typedef char TCHAR;
  37. #define _T(x) x
  38. #include "output.inl"