Reactos
at master 22 lines 537 B view raw
1// 2// strncpy_s.cpp 3// 4// Copyright (c) Microsoft Corporation. All rights reserved. 5// 6// Defines strncpy_s(), which appends n characters of the source string onto the 7// end of the destination string. 8// 9#include <corecrt_internal_string_templates.h> 10#include <string.h> 11 12 13 14extern "C" errno_t __cdecl strncpy_s( 15 char* const destination, 16 size_t const size_in_elements, 17 char const* const source, 18 size_t const count 19 ) 20{ 21 return common_tcsncpy_s(destination, size_in_elements, source, count); 22}