FILE * xdgConfigOpen(const char * relativePath, const char * mode, xdgHandle *handle) { const char * const * dirs = xdgSearchableConfigDirectories(handle); FILE * result = xdgFileOpen(relativePath, mode, dirs); if (!handle) xdgFreeStringList((char**)dirs); return result; }
FILE * xdgConfigOpen(const char * relativePath, const char * mode, xdgHandle *handle) { return xdgFileOpen(relativePath, mode, xdgSearchableConfigDirectories(handle)); }