Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
annotate vutilities.c @ 178:c1784868dcea
testing hgeol -- see if it fixes line-ending issues -- commit line endings
| author | Me@portablequad |
|---|---|
| date | Wed, 04 Jan 2012 16:10:11 -0800 |
| parents | 13b22ffb8a2f |
| children | 6db9e4898978 |
| rev | line source |
|---|---|
| Me@178 | 1 /* |
| Me@178 | 2 * Copyright 2009 OpenSourceCodeStewardshipFoundation.org |
| Me@178 | 3 * Licensed under GNU General Public License version 2 |
| Me@178 | 4 * |
| Me@178 | 5 * Author: seanhalle@yahoo.com |
| Me@178 | 6 * |
| Me@178 | 7 * Created on November 14, 2009, 9:07 PM |
| Me@178 | 8 */ |
| Me@178 | 9 |
| Me@178 | 10 #include <malloc.h> |
| Me@178 | 11 #include <stdlib.h> |
| Me@178 | 12 |
| Me@178 | 13 #include "VMS.h" |
| Me@178 | 14 |
| Me@178 | 15 |
| Me@178 | 16 inline char * |
| Me@178 | 17 VMS__strDup( char *str ) |
| Me@178 | 18 { char *retStr; |
| Me@178 | 19 |
| Me@178 | 20 retStr = VMS__malloc( strlen(str) + 1 ); |
| Me@178 | 21 if( str == NULL ) return str; |
| Me@178 | 22 strcpy( retStr, str ); |
| Me@178 | 23 |
| Me@178 | 24 return retStr; |
| Me@178 | 25 } |
