summaryrefslogtreecommitdiff
path: root/tools/MakeDef/newstr.cpp
blob: d64ab7d5c4f66503f2e5d78b00054734a8e76126 (plain)
1
2
3
4
5
6
7
8
#include <string.h>

#include "h_util.h"

char* newStr( const char* s )
{
	return (s == NULL) ? NULL : strcpy(new char[strlen(s) + 1], s);
}