5.3.4.15. Function args_find

5.3.4.15.1. Function Documentation

int args_find(int argc, char **argv, const char *arg)

Find if an argument exists in program command line.

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.

Returns

1 if the argument is found, 0 otherwise.