Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenwcsxfrm.c
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS system libraries 00004 * FILE: lib/crt/?????? 00005 * PURPOSE: Unknown 00006 * PROGRAMER: Unknown 00007 * UPDATE HISTORY: 00008 * 25/11/05: Added license header 00009 */ 00010 00011 #include <precomp.h> 00012 00013 /* 00014 * @implemented 00015 */ 00016 size_t wcsxfrm(wchar_t *dst,const wchar_t *src, size_t n) 00017 { 00018 size_t r = 0; 00019 int c; 00020 00021 if (n != 0) { 00022 while ((c = *src++) != 0) 00023 { 00024 r++; 00025 if (--n == 0) 00026 { 00027 while (*src++ != 0) 00028 r++; 00029 break; 00030 } 00031 *dst++ = c; 00032 } 00033 *dst = 0; 00034 } 00035 return r; 00036 } Generated on Wed May 23 2012 04:34:33 for ReactOS by
1.7.6.1
|