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

Function main

lib_protocol/samples/http_probe/http_probe.cpp:33–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33int main(int argc, char *argv[])
34{
35 char ch;
36
37 var_probe_procname = acl_mystrdup(acl_safe_basename(argv[0]));
38
39 while ((ch = getopt(argc, argv, "hf:")) > 0) {
40 switch (ch) {
41 case 'f':
42 var_cfg_file = acl_mystrdup(optarg);
43 break;
44 case 'h':
45 usage(argv[0]);
46 break;
47 default:
48 usage(argv[0]);
49 break;
50 }
51 }
52
53 if (var_cfg_file == NULL)
54 var_cfg_file = acl_mystrdup("test.cf");
55 init();
56 probe_run();
57 acl_myfree(var_cfg_file);
58 exit (0);
59}

Callers

nothing calls this directly

Calls 5

acl_safe_basenameFunction · 0.85
probe_runFunction · 0.85
usageFunction · 0.70
initFunction · 0.70
getoptFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…