MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / readable

Function readable

libraries/AP_Scripting/lua/src/loadlib.c:421–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419
420
421static int readable (const char *filename) {
422 FILE *f = fopen(filename, "r"); /* try to open file */
423 if (f == NULL) return 0; /* open failed */
424 fclose(f);
425 return 1;
426}
427
428
429static const char *pushnexttemplate (lua_State *L, const char *path) {

Callers 1

searchpathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected