NAME

arg_catargs - Concatenate all argv[] arguments.

SYNOPSIS

#include <argtable.h>

void arg_catargs(int argc, char **argv, char *str);

PARAMETERS

int argc
Number of arguments in argv[].
char **argv
Ptr to array of argument strings.
char *str
Ptr to target string.

DESCRIPTION

Concatenates all of the arguments in the argv[] array and writes the result into *str as a single line, space separated string. Any argv[] entries that contain whitespace are automatically encapsulated by single quotes prior to the concatenation to preserve their word grouping. A trailing space is always appended to the resulting string as a safety precaution in lieu of scanning for string literals that expect trailing space. It is assumed that *str is big enough to store the result.
Ordinarily you would not call this function yourself. It is supplied in case you wish to process some string other than argv[], or perhaps you may wish to bypass arg_scanargv() altogether and use arg_scanstr() to process the command line manually.

SEE ALSO

arg_dump , arg_glossary , arg_record , arg_scanargv , arg_scanstr , arg_syntax , arg_typestr