Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
diff vutilities.c @ 65:13b22ffb8a2f
Nov 14 vers -- Added measurement of Plugin, malloc, & master lock, + vutilities
| author | Me |
|---|---|
| date | Sun, 14 Nov 2010 11:17:52 -0800 |
| parents | |
| children | a9b72021f053 c1784868dcea 0320b49ca013 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/vutilities.c Sun Nov 14 11:17:52 2010 -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__strDup( char *str ) 1.21 + { char *retStr; 1.22 + 1.23 + retStr = VMS__malloc( strlen(str) + 1 ); 1.24 + if( str == NULL ) return str; 1.25 + strcpy( retStr, str ); 1.26 + 1.27 + return retStr; 1.28 + }
