arg_record(3)

NAME
arg_record - Builds and returns an argument table record.

SYNOPSIS
#include <argtable.h>

arg_rec arg_record(char *tagstr, char *argname, arg_type argtype, void *valueptr, char *defaultstr, char *argdescrip);

PARAMETERS

char *tagstr
    argument tag string

char *argname
    argument name string

arg_type argtype
    argument data type

    Possible values for an arg_type are as follows:
    arg_int, arg_dbl, arg_str, arg_bool, arg_lit

void *valueptr
    pointer to user-supplied storage location

char *defaultstr
    default argument value, as a string

char *argdescrip
    argument description string

DESCRIPTION
Returns an arg_rec structure containing the values passed to the function. It is useful for building argument tables dynamically.

SEE ALSO
arg_catargs(3), arg_dump(3), arg_glossary(3), arg_scanargv(3), arg_scanstr(3), arg_syntax(3), arg_typestr(3)