MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / init_arg

Function init_arg

libCacheSim/bin/traceAnalyzer/cli_parser.cpp:234–248  ·  view source on GitHub ↗

* @brief initialize the arguments * * @param args */

Source from the content-addressed store, hash-verified

232 * @param args
233 */
234static void init_arg(struct arguments *args) {
235 memset(args, 0, sizeof(struct arguments));
236
237 args->trace_path = NULL;
238 args->trace_type_params = NULL;
239 args->verbose = true;
240 memset(args->ofilepath, 0, OFILEPATH_LEN);
241 args->n_req = -1;
242 args->verbose = false;
243
244 args->analysis_option = traceAnalyzer::default_option();
245 args->analysis_param = traceAnalyzer::default_param();
246
247 args->reader = NULL;
248}
249
250/**
251 * @brief parse the command line arguments

Callers 1

parse_cmdFunction · 0.70

Calls 2

default_optionFunction · 0.85
default_paramFunction · 0.85

Tested by

no test coverage detected