MCPcopy Create free account
hub / github.com/crownengine/crown / readable

Function readable

3rdparty/luajit/src/lib_package.c:297–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295/* ------------------------------------------------------------------------ */
296
297static int readable(const char *filename)
298{
299 FILE *f = fopen(filename, "r"); /* try to open file */
300 if (f == NULL) return 0; /* open failed */
301 fclose(f);
302 return 1;
303}
304
305static const char *pushnexttemplate(lua_State *L, const char *path)
306{

Callers 1

searchpathFunction · 0.70

Calls 2

fopenFunction · 0.85
fcloseFunction · 0.85

Tested by

no test coverage detected