diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/vutilities.c	Wed Feb 22 11:39:12 2012 -0800
     1.3 @@ -0,0 +1,25 @@
     1.4 +/*
     1.5 + *  Copyright 2009 OpenSourceCodeStewardshipFoundation.org
     1.6 + *  Licensed under GNU General Public License version 2
     1.7 + *
     1.8 + * Author: seanhalle@yahoo.com
     1.9 + *
    1.10 + * Created on November 14, 2009, 9:07 PM
    1.11 + */
    1.12 +
    1.13 +#include <malloc.h>
    1.14 +#include <stdlib.h>
    1.15 +
    1.16 +#include "VMS.h"
    1.17 +
    1.18 +
    1.19 +inline char *
    1.20 +VMS_int__strDup( char *str )
    1.21 + { char *retStr;
    1.22 +
    1.23 +   retStr = VMS_int__malloc( strlen(str) + 1 );
    1.24 +   if( str == NULL ) return str;
    1.25 +   strcpy( retStr, str );
    1.26 +
    1.27 +   return retStr;
    1.28 + }