UserInterface/Add_Option_Name [ Functions ]

FUNCTION

Add the name of an option to the group of option names an option test applies to.

SYNOPSIS

static void Add_Option_Name(
    struct RB_Option_Test *option_test,
    char *name )

INPUTS

option_test -- the option test name -- the name of the option

SOURCE

{
    struct RB_Option_Name *new_option_name =
        malloc( sizeof( struct RB_Option_Name ) );
    new_option_name->name = RB_StrDup( name );
    new_option_name->next = option_test->option_group;
    new_option_name->count = 0;
    option_test->option_group = new_option_name;
}