summaryrefslogtreecommitdiff
path: root/src/pal/src/safecrt/safecrt_input_s.cpp
blob: 6ba607c669f34759d03ea9db0b9658ebca3bbb77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

/***
*safecrt_input_s.c - implementation of the _input family for safecrt.lib
*

*
*Purpose:
*       This file contains the implementation of the _input family for safecrt.lib.
*
*Revision History:
*       07/19/04  AC    Created
*
****/

#define _SAFECRT_IMPL
#define _SECURE_SCANF

#include "pal/palinternal.h"
#include <string.h>
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <locale.h>
#include <stdarg.h>
#include <inttypes.h>

#include "internal_securecrt.h"

#include "mbusafecrt_internal.h"

#define _TCHAR CRT_TCHAR
#define TCHAR CRTTCHAR

typedef char            _TCHAR;
typedef char            TCHAR;
typedef unsigned char   _TUCHAR;
#define _T(x)       x
#define _TEOF       EOF

#define _gettc_nolock(x)        _getc_nolock(x)
#define _ungettc_nolock(x,y)    _ungetc_nolock(x,y)

#include "input.inl"