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

Function is_file

examples/print_syscalls/src/arm-syscall.cpp:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls 1

statClass · 0.70

Tested by

no test coverage detected