michael@0: /* michael@0: ****************************************************************************** michael@0: * michael@0: * Copyright (C) 2001, International Business Machines michael@0: * Corporation and others. All Rights Reserved. michael@0: * michael@0: ****************************************************************************** michael@0: * file name: cwchar.c michael@0: * encoding: US-ASCII michael@0: * tab size: 8 (not used) michael@0: * indentation:4 michael@0: * michael@0: * created on: 2001may25 michael@0: * created by: Markus W. Scherer michael@0: */ michael@0: michael@0: #include "unicode/utypes.h" michael@0: michael@0: #if !U_HAVE_WCSCPY michael@0: michael@0: #include "cwchar.h" michael@0: michael@0: U_CAPI wchar_t *uprv_wcscat(wchar_t *dst, const wchar_t *src) { michael@0: wchar_t *start=dst; michael@0: while(*dst!=0) { michael@0: ++dst; michael@0: } michael@0: while((*dst=*src)!=0) { michael@0: ++dst; michael@0: ++src; michael@0: } michael@0: return start; michael@0: } michael@0: michael@0: U_CAPI wchar_t *uprv_wcscpy(wchar_t *dst, const wchar_t *src) { michael@0: wchar_t *start=dst; michael@0: while((*dst=*src)!=0) { michael@0: ++dst; michael@0: ++src; michael@0: } michael@0: return start; michael@0: } michael@0: michael@0: U_CAPI size_t uprv_wcslen(const wchar_t *src) { michael@0: const wchar_t *start=src; michael@0: while(*src!=0) { michael@0: ++src; michael@0: } michael@0: return src-start; michael@0: } michael@0: michael@0: #endif michael@0: