MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / Exists

Function Exists

src/LuaExtension.cpp:58–68  ·  view source on GitHub ↗

Helper function from SciTE

Source from the content-addressed store, hash-verified

56
57// Helper function from SciTE
58[[maybe_unused]] static bool Exists(const char *fileName) {
59 bool ret = false;
60 if (fileName && fileName[0]) {
61 FILE *fp = fopen(fileName, "rb");
62 if (fp) {
63 ret = true;
64 fclose(fp);
65 }
66 }
67 return ret;
68}
69
70
71// A note on naming conventions:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected