wcsncat_s.c 804 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // Copyright (c) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE file in the project root for full license information.
  4. //
  5. /***
  6. *wcsncat_s.c - append n chars of string to new string
  7. *
  8. *
  9. *Purpose:
  10. * defines wcsncat_s() - appends n characters of string onto
  11. * end of other string
  12. *
  13. *******************************************************************************/
  14. #define _SECURECRT_FILL_BUFFER 1
  15. #define _SECURECRT_FILL_BUFFER_THRESHOLD ((size_t)8)
  16. #include <string.h>
  17. #include <errno.h>
  18. #include <limits.h>
  19. #include "internal_securecrt.h"
  20. #include "mbusafecrt_internal.h"
  21. #define _FUNC_PROLOGUE
  22. #define _FUNC_NAME wcsncat_s
  23. #define _CHAR char16_t
  24. #define _DEST _Dst
  25. #define _SIZE _SizeInWords
  26. #define _SRC _Src
  27. #define _COUNT _Count
  28. #include "tcsncat_s.inl"