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