ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

tcsncpy.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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.