>>878
wchar_t *ret = (wchar_t*)malloc(( end - begin + 1 )*2);