view vutilities.c @ 89:be7289708da3

Added tag malloc_touch for changeset 42d015d48eeb
author Merten Sach <msach@mailbox.tu-berlin.de>
date Wed, 13 Jul 2011 18:10:59 +0200
parents
children a9b72021f053 c1784868dcea 0320b49ca013
line source
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 */
10 #include <malloc.h>
11 #include <stdlib.h>
13 #include "VMS.h"
16 inline char *
17 VMS__strDup( char *str )
18 { char *retStr;
20 retStr = VMS__malloc( strlen(str) + 1 );
21 if( str == NULL ) return str;
22 strcpy( retStr, str );
24 return retStr;
25 }