cfg_encoder_add_string()

Add a configuration item with a string value to an encoder.

Synopsis:

#include <asr/cfg.h>
 
cfg_item_t* cfg_encoder_add_string(cfg_encoder_t *e, const char *name, const char *value)

Arguments:

e

A pointer to the encoder structure to add the new configuration item to.

name

The name of the new configuration item.

value

The string value of the configuration item.

Library:

libasr

Description:

The cfg_encoder_add_string() function creates a new configuration item with the specified name and string value and adds it as a child of the encoder container (after any other child nodes). Spaces and quotes are removed from the name and value before the configuration item is created.

Returns:

A pointer to the new configuration item.