5.3.4.17. Function args_find_vector2D_int

5.3.4.17.1. Function Documentation

vec2D_int_t args_find_vector2D_int(int argc, char **argv, const char *arg, const char *def)

Find an argument and return its corresponding value as a vector 2D 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 2D 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 2D.