Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison vutilities.c @ 208:eaf7e4c58c9e
Create common_ancestor brch -- all branches will be closed, then new ones
created with this as the common ancestor of all branches -- it is incomplete!
only code that is common to all HW and Feat and FeatDev branches is in here
| author | Some Random Person <seanhalle@yahoo.com> |
|---|---|
| date | Wed, 22 Feb 2012 11:39:12 -0800 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 5:2d6cc9531566 |
|---|---|
| 1 /* | |
| 2 * Copyright 2009 OpenSourceCodeStewardshipFoundation.org | |
| 3 * Licensed under GNU General Public License version 2 | |
| 4 * | |
| 5 * Author: seanhalle@yahoo.com | |
| 6 * | |
| 7 * Created on November 14, 2009, 9:07 PM | |
| 8 */ | |
| 9 | |
| 10 #include <malloc.h> | |
| 11 #include <stdlib.h> | |
| 12 | |
| 13 #include "VMS.h" | |
| 14 | |
| 15 | |
| 16 inline char * | |
| 17 VMS_int__strDup( char *str ) | |
| 18 { char *retStr; | |
| 19 | |
| 20 retStr = VMS_int__malloc( strlen(str) + 1 ); | |
| 21 if( str == NULL ) return str; | |
| 22 strcpy( retStr, str ); | |
| 23 | |
| 24 return retStr; | |
| 25 } |
