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_output_s.c - implementation of the _output family for safercrt.lib
7*
8
9*
10*Purpose:
11* This file contains the implementation of the _output 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* 09-24-04 MSL Prefix disallow NULL deref
19*
20****/
21
22#define _SAFECRT_IMPL
23
24#define __STDC_LIMIT_MACROS
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#define FORMAT_VALIDATIONS
37#define _CFLTCVT _safecrt_cfltcvt
38
39#define _TCHAR CRT_TCHAR
40#define TCHAR CRTTCHAR
41
42typedef char _TCHAR;
43typedef char TCHAR;
44#define _T(x) x
45
46#include "output.inl"
47