MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / readable

Function readable

src/loadlib.cpp:448–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446
447
448static int readable (const char *filename) {
449 FILE *f = luaL_fopen(filename, strlen(filename), "r", sizeof("r") - sizeof(char)); /* try to open file */
450 if (f == NULL) return 0; /* open failed */
451 fclose(f);
452 return 1;
453}
454
455
456/*

Callers 1

searchpathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected