Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygentcsncpy.h
Go to the documentation of this file.
00001 /* $Id: tcsncpy.h 30283 2007-11-08 21:06:20Z fireball $ 00002 */ 00003 00004 #include <stddef.h> 00005 #include <tchar.h> 00006 00007 _TCHAR * _tcsncpy(_TCHAR * dst, const _TCHAR * src, size_t n) 00008 { 00009 if(n != 0) 00010 { 00011 _TCHAR * d = dst; 00012 const _TCHAR * s = src; 00013 00014 do 00015 { 00016 if((*d ++ = *s ++) == 0) 00017 { 00018 while (-- n != 0) *d ++ = 0; 00019 break; 00020 } 00021 } 00022 while(-- n != 0); 00023 } 00024 00025 return dst; 00026 } 00027 00028 /* EOF */ Generated on Fri May 25 2012 04:35:10 for ReactOS by
1.7.6.1
|