xref: /reactos/sdk/lib/ucrt/string/wcsnset_s.cpp (revision 53d808d2)
1 //
2 // wcsnset_s.cpp
3 //
4 //      Copyright (c) Microsoft Corporation.  All rights reserved.
5 //
6 // Defines _wcsnset_s(), which sets at most the first 'count' characters of a
7 // string to the given character and ensures that the resulting string is null-
8 // terminated.
9 //
10 #include <corecrt_internal_string_templates.h>
11 #include <string.h>
12 
13 extern "C" errno_t __cdecl _wcsnset_s(
14     wchar_t* const destination,
15     size_t   const size_in_elements,
16     wchar_t  const value,
17     size_t   const count
18     )
19 {
20     return common_tcsnset_s(destination, size_in_elements, value, count);
21 }
22