git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git]
/
lib
/
crtdll
/
wchar
/
wcsdup.c
1
#include <crtdll/wchar.h>
2
#include <crtdll/errno.h>
3
#include <crtdll/internal/file.h>
4
5
6
wchar_t *_wcsdup(const wchar_t *ptr)
7
{
8
wchar_t *dup;
9
dup = malloc((wcslen(ptr) + 1)*sizeof(wchar_t));
10
if( dup == NULL ) {
11
__set_errno(ENOMEM);
12
return NULL;
13
}
14
wcscpy(dup,ptr);
15
return dup;
16
}
17
18
19