removed copystring function already defined in common wx utilities
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -13,18 +13,6 @@
|
|||||||
#include "wx/defs.h"
|
#include "wx/defs.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char *
|
|
||||||
copystring (const char *s)
|
|
||||||
{
|
|
||||||
if (s == NULL) s = "";
|
|
||||||
size_t len = strlen (s) + 1;
|
|
||||||
|
|
||||||
char *news = new char[len];
|
|
||||||
memcpy (news, s, len); // Should be the fastest
|
|
||||||
|
|
||||||
return news;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
// from filefn.cpp
|
// from filefn.cpp
|
||||||
void WXDLLEXPORT wxSplitPath(const char *pszFileName,
|
void WXDLLEXPORT wxSplitPath(const char *pszFileName,
|
||||||
|
Reference in New Issue
Block a user