xref: /reactos/sdk/lib/ucrt/string/strnset_s.cpp (revision a6a07059)
1 //
2 // strnset_s.cpp
3 //
4 //      Copyright (c) Microsoft Corporation.  All rights reserved.
5 //
6 // Defines _strnset_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 
14 
15 extern "C" errno_t __cdecl _strnset_s(
16     char*  const destination,
17     size_t const size_in_elements,
18     int    const value,
19     size_t const count
20     )
21 {
22     return common_tcsnset_s(destination, size_in_elements, static_cast<char>(value), count);
23 }
24