MCPcopy Create free account
hub / github.com/acl-dev/acl / main

Function main

lib_acl/samples/xml/xml5/xml.cpp:80–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80int main(int argc, char *argv[])
81{
82 int ch;
83 char filepath[256];
84
85 filepath[0] = 0;
86
87 while ((ch = getopt(argc, argv, "hf:")) > 0) {
88 switch (ch) {
89 case 'h':
90 usage(argv[0]);
91 return (0);
92 case 'f':
93 snprintf(filepath, sizeof(filepath), "%s", optarg);
94 break;
95 default:
96 break;
97 }
98 }
99
100 if (filepath[0] != 0)
101 parse_xml_file(filepath);
102
103 return 0;
104}

Callers

nothing calls this directly

Calls 3

usageFunction · 0.70
parse_xml_fileFunction · 0.70
getoptFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…