Salad  1.0.15
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
Sld_options

Functions

SLD_SSINT sld_options_read (const char *file_name, struct sld_map *options)
 Parses the specified configuration file and stores the results in a sld_map. More...
 

Detailed Description

Tbis module contains functions related to parsing configuration files.

Function Documentation

SLD_SSINT sld_options_read ( const char *  file_name,
struct sld_map options 
)

Parses the specified configuration file and stores the results in a sld_map.

Parameters
file_namea configuration file name to parse
optionsan initialized sld_map to populate with key/value pairs
Returns
Success or failure
Warning
This function makes use of the sld_memory_pool. Be sure to periodically check memory pool usage by calling sld_memory_pool_objects() and sld_memory_pool_size(). If necessary, call sld_memory_pool_free() or sld_memory_pool_nuke() to prevent memory leaks.
sld_options_read("salad.cfg", &options);
Examples:
options.c.