1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4
5/***
6*safecrt_woutput_s.c - implementation of the _woutput family for safercrt.lib
7*
8
9*
10*Purpose:
11* This file contains the implementation of the _woutput family for safercrt.lib.
12*
13*Revision History:
14* 07-08-04 SJ Stub module created.
15* 07-13-04 AC Added support for floating-point types.
16* 07-29-04 AC Added macros for a safecrt version of mctowc and wctomb, which target ntdll.dll or msvcrt.dll
17* based on the _NTSUBSET_ #define
18*
19****/
20
21#define _SAFECRT_IMPL
22
23#define __STDC_LIMIT_MACROS
24
25#include "pal/palinternal.h"
26#include <string.h>
27#include <errno.h>
28#include <limits.h>
29#include <stdlib.h>
30#include <stdarg.h>
31#include <inttypes.h>
32#include "internal_securecrt.h"
33
34#include "mbusafecrt_internal.h"
35
36#ifndef _UNICODE /* CRT flag */
37#define _UNICODE 1
38#endif
39
40#ifndef UNICODE /* NT flag */
41#define UNICODE 1
42#endif
43
44#define FORMAT_VALIDATIONS
45#if defined(_NTSUBSET_)
46#define _MBTOWC _safecrt_mbtowc
47#endif
48#define _WCTOMB_S _safecrt_wctomb_s
49#define _CFLTCVT _safecrt_cfltcvt
50#define _CLDCVT _safecrt_cldcvt
51
52#define _TCHAR CRT_TCHAR
53#define TCHAR CRTTCHAR
54
55typedef wchar_t _TCHAR;
56typedef wchar_t TCHAR;
57#define _T(x) L##x
58
59#include "output.inl"
60