diff options
Diffstat (limited to 'tools/MakeDef/newstr.cpp')
-rw-r--r-- | tools/MakeDef/newstr.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/MakeDef/newstr.cpp b/tools/MakeDef/newstr.cpp new file mode 100644 index 0000000000..557ea17038 --- /dev/null +++ b/tools/MakeDef/newstr.cpp @@ -0,0 +1,8 @@ +#include <string.h>
+
+#include "h_util.h"
+
+char* newStr( const char* s )
+{
+ return (s == NULL) ? NULL : strcpy(new char[strlen(s) + 1], s);
+}
|