MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / is_file

Function is_file

examples/enterprise_test/src/enterprise_test.cpp:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13using namespace std;
14
15bool is_file(char* fname)
16{
17 struct stat buf;
18 if (stat(fname, &buf) == 0 && (buf.st_mode & S_IFREG) == S_IFREG)
19 return true;
20
21 return false;
22}
23
24int main(int argc, char* argv[])
25{

Callers 1

mainFunction · 0.70

Calls 1

statClass · 0.70

Tested by

no test coverage detected