summaryrefslogtreecommitdiff
path: root/tools/MakeDef/newstr.cpp
blob: 557ea1703811e14ab2f8440e6961790817c029f8 (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);
}