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

Function main

lib_acl_cpp/samples/dbuf/alloc/main.cpp:123–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123int main(int argc, char* argv[]) {
124 acl::log::stdout_open(true);
125
126 int nblock = 2, capacity = 1000, incr = 999;
127 int n, max = 100000, pos = 987;
128 while ((n = getopt(argc, argv, "hn:p:b:c:i:")) > 0) {
129 switch (n) {
130 case 'h':
131 usage(argv[0]);
132 return 0;
133 case 'n':
134 max = atoi(optarg);
135 break;
136 case 'p':
137 pos = atoi(optarg);
138 break;
139 case 'c':
140 capacity = atoi(optarg);
141 break;
142 case 'i':
143 incr = atoi(optarg);
144 break;
145 case 'b':
146 nblock = atoi(optarg);
147 break;
148 default:
149 break;
150 }
151 }
152
153 test1(nblock, capacity, incr, max, pos);
154
155 printf("\r\n");
156 printf("=======================================================\r\n");
157 test2();
158
159 return 0;
160}

Callers

nothing calls this directly

Calls 4

usageFunction · 0.70
test1Function · 0.70
test2Function · 0.70
getoptFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…