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

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

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