Blame src/u16_wcsncat.c

e8211c
/*******************************************************************/
e8211c
/*  u16ports: u16 variants of wide character string functions.     */
e8211c
/*  Copyright (C) 2017  Z. Gilboa                                  */
e8211c
/*  Released under the Standard MIT License; see COPYING.U16PORTS. */
e8211c
/*******************************************************************/
e8211c
e8211c
#include <stdint.h>
e8211c
#include <u16ports/u16ports.h>
e8211c
e8211c
uint16_t * u16_wcsncat(uint16_t * dst, const uint16_t * src, size_t len)
e8211c
{
e8211c
	uint16_t * ret;
e8211c
e8211c
	ret  = dst;
e8211c
	dst += u16_wcslen(dst);
e8211c
e8211c
	for (; len && *src; len--)
e8211c
		*dst++ = *src++;
e8211c
e8211c
	*dst = 0;
e8211c
e8211c
	return ret;
e8211c
}