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

Function main

lib_acl_cpp/samples/dbuf/dbuf4/main.cpp:80–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80int main(int argc, char* argv[])
81{
82 acl::log::stdout_open(true);
83
84 int nblock = 2, capacity = 1000, incr = 999;
85 int n, max = 100000, pos = 987;
86 while ((n = getopt(argc, argv, "hn:p:b:c:i:")) > 0)
87 {
88 switch (n)
89 {
90 case 'h':
91 usage(argv[0]);
92 return 0;
93 case 'n':
94 max = atoi(optarg);
95 break;
96 case 'p':
97 pos = atoi(optarg);
98 break;
99 case 'c':
100 capacity = atoi(optarg);
101 break;
102 case 'i':
103 incr = atoi(optarg);
104 break;
105 case 'b':
106 nblock = atoi(optarg);
107 break;
108 default:
109 break;
110 }
111 }
112
113 test(nblock, capacity, incr, max, pos);
114 return 0;
115}

Callers

nothing calls this directly

Calls 3

usageFunction · 0.70
testFunction · 0.70
getoptFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…