summaryrefslogtreecommitdiff
path: root/src/pal/src/safecrt/safecrt_input_s.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/src/safecrt/safecrt_input_s.c')
-rw-r--r--src/pal/src/safecrt/safecrt_input_s.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/pal/src/safecrt/safecrt_input_s.c b/src/pal/src/safecrt/safecrt_input_s.c
new file mode 100644
index 0000000000..6ba607c669
--- /dev/null
+++ b/src/pal/src/safecrt/safecrt_input_s.c
@@ -0,0 +1,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"