Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenmbsdup.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/msvcrt/mbstring/mbsdup.c 00005 * PURPOSE: Duplicates a multi byte string 00006 * PROGRAMER: Ariadne 00007 * UPDATE HISTORY: 00008 Modified from DJGPP strdup 00009 * 12/04/99: Created 00010 */ 00011 00012 #include <precomp.h> 00013 #include <mbstring.h> 00014 #include <stdlib.h> 00015 00016 /* 00017 * @implemented 00018 */ 00019 unsigned char * _mbsdup(const unsigned char *_s) 00020 { 00021 unsigned char *rv; 00022 if (_s == 0) 00023 return 0; 00024 rv = (unsigned char *)malloc(_mbslen(_s) + 1); 00025 if (rv == 0) 00026 return 0; 00027 _mbscpy(rv, _s); 00028 return rv; 00029 } Generated on Thu May 24 2012 04:36:57 for ReactOS by
1.7.6.1
|