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 | *strncpy_s.c - copy at most n characters of string |
7 | * |
8 | |
9 | * |
10 | *Purpose: |
11 | * defines strncpy_s() - copy at most n characters of string |
12 | * |
13 | *******************************************************************************/ |
14 | |
15 | #include <string.h> |
16 | #include <errno.h> |
17 | #include <limits.h> |
18 | #include "internal_securecrt.h" |
19 | |
20 | #include "mbusafecrt_internal.h" |
21 | |
22 | #define _FUNC_PROLOGUE |
23 | #define _FUNC_NAME strncpy_s |
24 | #define _CHAR char |
25 | #define _DEST _Dst |
26 | #define _SIZE _SizeInBytes |
27 | #define _SRC _Src |
28 | #define _COUNT _Count |
29 | |
30 | #include "tcsncpy_s.inl" |
31 | |