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