added winchar_strdup

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4936 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-02-17 15:06:53 +00:00
parent 82ab983cbd
commit 0b19a3fa29
3 changed files with 19 additions and 0 deletions

View file

@ -78,6 +78,13 @@ size_t winchar_strlen(WCHAR *ws)
return len;
}
WCHAR *winchar_strdup(WCHAR *ws)
{
WCHAR *dup = new WCHAR[winchar_strlen(ws) + 1];
winchar_strcpy(dup, ws);
return dup;
}
int winchar_strcmp(const WCHAR *ws1, const WCHAR *ws2)
{
int diff = 0;