5.3.4.8. Function args_find_char
Defined in File args.h
5.3.4.8.1. Function Documentation
-
char *args_find_char(int argc, char **argv, const char *arg, char *def)
Find an argument and return its corresponding value as string (array of characters).
- Parameters
argc – Number of arguments in
argvarray 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
Pointer of characters in
argvcorresponding to the argument value if it exists in the command line,defpointer otherwise.