src/arg.c
struct arg_list *arg_list_clone(const struct arg_list *orig)
{
	struct arg_list *new;

	if ((new = calloc(1, sizeof(*new))) != NULL) {
		/* ->list will be set by the caller when inserting the element.
		 * ->arg and ->arg_pos will be set by the caller.
		 */
		new->ctx = orig->ctx;
		new->kw = orig->kw;
		new->conv = orig->conv;
		new->file = orig->file;
		new->line = orig->line;
	}
	return new;
}
/* This function clones a struct arg_list template into a new one which is
 * returned.
 */
This function clones a struct arg_list template into a new one which is
returned.
This function clones a struct arg_list template into a new one which is returned .
struct arg_list *arg_list_clone(const struct arg_list *orig)
{
	struct arg_list *new;
	if ((new = calloc(1, sizeof(*new))) != NULL) {
		new->ctx = orig->ctx;
		new->kw = orig->kw;
		new->conv = orig->conv;
		new->file = orig->file;
		new->line = orig->line;
	}
	return new;
}
struct arg_list * arg_list_clone ( const struct arg_list * orig ) { struct arg_list * new ; if ( ( new = calloc ( 1 , sizeof ( * new ) ) ) != NULL ) { new -> ctx = orig -> ctx ; new -> kw = orig -> kw ; new -> conv = orig -> conv ; new -> file = orig -> file ; new -> line = orig -> line ; } return new ; }
This function clones a struct arg_list template into a new one which is
 returned.
This function clones a struct arg_list template into a new one which is returned .
/* ->list will be set by the caller when inserting the element.
		 * ->arg and ->arg_pos will be set by the caller.
		 */