annotate 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
rev   line source
seanhalle@208 1 /*
seanhalle@208 2 * Copyright 2009 OpenSourceCodeStewardshipFoundation.org
seanhalle@208 3 * Licensed under GNU General Public License version 2
seanhalle@208 4 *
seanhalle@208 5 * Author: seanhalle@yahoo.com
seanhalle@208 6 *
seanhalle@208 7 * Created on November 14, 2009, 9:07 PM
seanhalle@208 8 */
seanhalle@208 9
seanhalle@208 10 #include <malloc.h>
seanhalle@208 11 #include <stdlib.h>
seanhalle@208 12
seanhalle@208 13 #include "VMS.h"
seanhalle@208 14
seanhalle@208 15
seanhalle@208 16 inline char *
seanhalle@208 17 VMS_int__strDup( char *str )
seanhalle@208 18 { char *retStr;
seanhalle@208 19
seanhalle@208 20 retStr = VMS_int__malloc( strlen(str) + 1 );
seanhalle@208 21 if( str == NULL ) return str;
seanhalle@208 22 strcpy( retStr, str );
seanhalle@208 23
seanhalle@208 24 return retStr;
seanhalle@208 25 }