MCPcopy Create free account
hub / github.com/git/git / xwcstoutf

Function xwcstoutf

compat/mingw.c:3125–3136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3123}
3124
3125int xwcstoutf(char *utf, const wchar_t *wcs, size_t utflen)
3126{
3127 if (!wcs || !utf || utflen < 1) {
3128 errno = EINVAL;
3129 return -1;
3130 }
3131 utflen = WideCharToMultiByte(CP_UTF8, 0, wcs, -1, utf, utflen, NULL, NULL);
3132 if (utflen)
3133 return utflen - 1;
3134 errno = ERANGE;
3135 return -1;
3136}
3137
3138static void setup_windows_environment(void)
3139{

Callers 8

read_reparse_pointFunction · 0.85
mingw_getcwdFunction · 0.85
mingw_getenvFunction · 0.85
get_extended_user_infoFunction · 0.85
getpwuidFunction · 0.85
wcstoutfdup_startupFunction · 0.85
finddata2direntFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected