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