MCPcopy Create free account
hub / github.com/OAID/Tengine / check_file_exist

Function check_file_exist

examples/common/common.cpp:132–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132bool check_file_exist(const std::string file_name)
133{
134 FILE* fp = fopen(file_name.c_str(), "r");
135 if(!fp)
136 {
137 std::cerr << "Input file not existed: " << file_name << "\n";
138 return false;
139 }
140 fclose(fp);
141 return true;
142}

Callers 12

mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
load_3modelMethod · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected