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

Function xutftowcs_path

compat/mingw.h:133–139  ·  view source on GitHub ↗

* Simplified file system specific variant of xutftowcsn, assumes output * buffer size is MAX_PATH wide chars and input string is \0-terminated, * fails with ENAMETOOLONG if input string is too long. */

Source from the content-addressed store, hash-verified

131 * fails with ENAMETOOLONG if input string is too long.
132 */
133static inline int xutftowcs_path(wchar_t *wcs, const char *utf)
134{
135 int result = xutftowcsn(wcs, utf, MAX_PATH, -1);
136 if (result < 0 && errno == ERANGE)
137 errno = ENAMETOOLONG;
138 return result;
139}
140
141/**
142 * Converts UTF-16LE encoded string to UTF-8.

Callers 15

mingw_unlinkFunction · 0.85
mingw_rmdirFunction · 0.85
mingw_mkdirFunction · 0.85
mingw_openFunction · 0.85
mingw_fopenFunction · 0.85
mingw_freopenFunction · 0.85
mingw_accessFunction · 0.85
mingw_chdirFunction · 0.85
mingw_chmodFunction · 0.85
mingw_lstatFunction · 0.85
mingw_statFunction · 0.85
mingw_utimeFunction · 0.85

Calls 1

xutftowcsnFunction · 0.85

Tested by

no test coverage detected