read_config.c

The following example shows how to use readMyConfig

#include <rzb_conf.h>

const char *my_string;

static RZBConfKey_t my_config[] = {
    { "MY_STRING", RZB_CONF_KEY_TYPE_STRING, &my_string },
    { NULL, RZB_CONF_KEY_TYPE_END, NULL }
};

if (readApiConfig(NULL) != R_SUCCESS)
    printf("Failed to load api config file\n");

if (readMyConfig(NULL, "rzb_custom.conf", my_config) != R_SUCCESS)
    printf("Failed to load custom config file\n");
else
    printf("MY_STRING: %s\n", my_string);

 All Data Structures Files Functions Variables Enumerations Enumerator Defines

Generated on Mon Jan 30 16:00:23 2012 for RazorbackAPI by  doxygen 1.6.1