diff options
author | George Hazan <george.hazan@gmail.com> | 2015-03-21 19:15:39 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-03-21 19:15:39 +0000 |
commit | aebb257da0067c98c292bc62ad73200cc3a9dba7 (patch) | |
tree | bf3d47189a35bfc6c78ac4e6b7baf48a455650b8 /tools/MakeDef/newstr.cpp | |
parent | 2e286299cea4063e71845616138e92299af42744 (diff) |
DEF-file automatic creator
git-svn-id: http://svn.miranda-ng.org/main/trunk@12473 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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);
+}
|