19#ifndef FFTOOLS_FOPEN_UTF8_H
20#define FFTOOLS_FOPEN_UTF8_H
33static inline FILE *
fopen_utf8(
const char *path_utf8,
const char *
mode)
35 wchar_t *path_w, *mode_w;
39 if (get_extended_win32_path(path_utf8, &path_w))
44 if (utf8towchar(
mode, &mode_w))
54 f = _wfopen(path_w, mode_w);
61 return fopen(path_utf8,
mode);
68 return fopen(path,
mode);
static FILE * fopen_utf8(const char *path, const char *mode)
Memory handling functions.