41 if (wide_user_prefix ==
nullptr || wide_user_prefix[0] ==
L'\0')
46 size_t required_count = 0;
48 if (required_count == 0)
51 __crt_unique_heap_ptr<char>
const narrow_user_prefix(_calloc_crt_t(
char, required_count));
52 if (narrow_user_prefix.get() ==
nullptr)
57 narrow_user_prefix.get(),
62 if (conversion_result != 0)
65 return perror(narrow_user_prefix.get());
#define _ERRCHECK_EINVAL_ERANGE(e)
void CDECL perror(const char *str)
_ACRTIMP errno_t __cdecl wcstombs_s(size_t *, char *, size_t, const wchar_t *, size_t)
void __cdecl _wperror(wchar_t const *const wide_user_prefix)