annotate vutilities.c @ 134:a9b72021f053

Distributed memory management w/o free requests working
author Merten Sach <msach@mailbox.tu-berlin.de>
date Fri, 16 Sep 2011 16:19:24 +0200
parents 13b22ffb8a2f
children
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>
msach@134 12 #include <string.h>
Me@65 13
Me@65 14 #include "VMS.h"
Me@65 15
Me@65 16
Me@65 17 inline char *
Me@65 18 VMS__strDup( char *str )
Me@65 19 { char *retStr;
Me@65 20
Me@65 21 retStr = VMS__malloc( strlen(str) + 1 );
Me@65 22 if( str == NULL ) return str;
Me@65 23 strcpy( retStr, str );
Me@65 24
Me@65 25 return retStr;
Me@65 26 }