MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / wcsdup

Function wcsdup

PythonBin/python_main.cpp:41–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39#include <wchar.h>
40
41static wchar_t *
42wcsdup(const wchar_t *s)
43{
44 wchar_t *copy;
45 size_t len;
46
47 len = wcslen(s) + 1;
48 if ( (copy = (wchar_t *)malloc(len * sizeof(wchar_t))) == NULL ) {
49 return (NULL);
50 }
51 return wmemcpy(copy, s, len);
52}
53#endif
54#endif
55

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected