MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_mkdir

Function hb_mkdir

libhb/ports.c:932–942  ·  view source on GitHub ↗

* hb_mkdir ************************************************************************ * Wrapper to the real mkdir, needed only because it doesn't take a * second argument on Win32. Grrr. ***********************************************************************/

Source from the content-addressed store, hash-verified

930 * second argument on Win32. Grrr.
931 ***********************************************************************/
932int hb_mkdir(const char * path)
933{
934#ifdef SYS_MINGW
935 wchar_t path_utf16[MAX_PATH];
936 if (!MultiByteToWideChar(CP_UTF8, 0, path, -1, path_utf16, MAX_PATH))
937 return -1;
938 return _wmkdir(path_utf16);
939#else
940 return mkdir(path, 0755);
941#endif
942}
943
944/************************************************************************
945 * Portable thread implementation

Callers 2

thread_funcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected