5.3.4.18. Function args_find_vector_int

5.3.4.18.1. Function Documentation

vec_int_t args_find_vector_int(int argc, char **argv, const char *arg, const char *def)

Find an argument and return its corresponding value as a vector of int.

Parameters
  • argc – Number of arguments in argv array of arguments.

  • argv – Array of arguments.

  • arg – Argument to look for. Note that a list of arguments can be provided: arguments have to be separated by a comma (‘,’) character.

  • def – Default value if the argument is not found.

Returns

Allocate a vector corresponding to the convertion of the argument value if it exists in the command line, def value otherwise. Don’t forget to free the vector.