arg_catargs(3)

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(3), arg_glossary(3), arg_record(3), arg_scanargv(3), arg_scanstr(3), arg_syntax(3), arg_typestr(3)