// © 2016 and later: Unicode, Inc. and others.1// License & terms of use: http://www.unicode.org/copyright.html2/*3******************************************************************************4*5* Copyright (C) 2001, International Business Machines6* Corporation and others. All Rights Reserved.7*8******************************************************************************9* file name: cwchar.c10* encoding: UTF-811* tab size: 8 (not used)12* indentation:413*14* created on: 2001may2515* created by: Markus W. Scherer16*/1718#include "unicode/utypes.h"1920#if !U_HAVE_WCSCPY2122#include "cwchar.h"2324U_CAPI wchar_t *uprv_wcscat(wchar_t *dst, const wchar_t *src) {25wchar_t *start=dst;26while(*dst!=0) {27++dst;28}29while((*dst=*src)!=0) {30++dst;31++src;32}33return start;34}3536U_CAPI wchar_t *uprv_wcscpy(wchar_t *dst, const wchar_t *src) {37wchar_t *start=dst;38while((*dst=*src)!=0) {39++dst;40++src;41}42return start;43}4445U_CAPI size_t uprv_wcslen(const wchar_t *src) {46const wchar_t *start=src;47while(*src!=0) {48++src;49}50return src-start;51}5253#endif54555657