| 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_input_s.c - implementation of the _input family for safecrt.lib |
| 7 | * |
| 8 | |
| 9 | * |
| 10 | *Purpose: |
| 11 | * This file contains the implementation of the _input family for safecrt.lib. |
| 12 | * |
| 13 | *Revision History: |
| 14 | * 07/19/04 AC Created |
| 15 | * |
| 16 | ****/ |
| 17 | |
| 18 | #define _SAFECRT_IMPL |
| 19 | #define _SECURE_SCANF |
| 20 | |
| 21 | #include "pal/palinternal.h" |
| 22 | #include <string.h> |
| 23 | #include <errno.h> |
| 24 | #include <limits.h> |
| 25 | #include <stdlib.h> |
| 26 | #include <locale.h> |
| 27 | #include <stdarg.h> |
| 28 | #include <inttypes.h> |
| 29 | |
| 30 | #include "internal_securecrt.h" |
| 31 | |
| 32 | #include "mbusafecrt_internal.h" |
| 33 | |
| 34 | #define _TCHAR CRT_TCHAR |
| 35 | #define TCHAR CRTTCHAR |
| 36 | |
| 37 | typedef char _TCHAR; |
| 38 | typedef char TCHAR; |
| 39 | typedef unsigned char _TUCHAR; |
| 40 | #define _T(x) x |
| 41 | #define _TEOF EOF |
| 42 | |
| 43 | #define _gettc_nolock(x) _getc_nolock(x) |
| 44 | #define _ungettc_nolock(x,y) _ungetc_nolock(x,y) |
| 45 | |
| 46 | #include "input.inl" |
| 47 | |