MCPcopy Create free account
hub / github.com/lief-project/LIEF / main

Function main

examples/cpp/dex_reader.cpp:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24
25int main(int argc, char **argv) {
26 LIEF::logging::set_level(LIEF::logging::LEVEL::DEBUG);
27 if (argc != 2) {
28 std::cerr << "Usage: " << argv[0] << " <DEX file>" << '\n';
29 return EXIT_FAILURE;
30 }
31
32 if (std::unique_ptr<const File> file = LIEF::DEX::Parser::parse(argv[1])) {
33 std::cout << *file << "\n";
34 return EXIT_SUCCESS;
35 }
36
37 return EXIT_FAILURE;
38}
39

Callers

nothing calls this directly

Calls 2

set_levelFunction · 0.50
parseFunction · 0.50

Tested by

no test coverage detected