MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / readable

Function readable

lib/lua/src/loadlib.c:425–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423
424
425static int readable (const char *filename) {
426 FILE *f = fopen(filename, "r"); /* try to open file */
427 if (f == NULL) return 0; /* open failed */
428 fclose(f);
429 return 1;
430}
431
432
433/*

Callers 1

searchpathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected