#include <corecrt_internal.h>
#include <corecrt_internal_lowio.h>
#include <io.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
◆ _wperror()
Definition at line 38 of file wperror.cpp.
39{
40
41 if (wide_user_prefix ==
nullptr || wide_user_prefix[0] ==
L'\0')
43
44
45
46 size_t required_count = 0;
48 if (required_count == 0)
49 return;
50
51 __crt_unique_heap_ptr<char> const narrow_user_prefix(_calloc_crt_t(char, required_count));
52 if (narrow_user_prefix.get() == nullptr)
53 return;
54
56 nullptr,
57 narrow_user_prefix.get(),
58 required_count,
59 wide_user_prefix,
61
62 if (conversion_result != 0)
63 return;
64
65 return perror(narrow_user_prefix.get());
66}
#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)