Note that not all options are accessible. If you want access to other options, please contact the developers.
Fetches the value of an option.
#include <di.h>
int optval;
optval = di_check_option (void *di_data, int option)
di_data : The di_data structure returned from di_initialize.
option : One of the option defines from di.h as listed below.
Returns: The value for the option. All options are boolean except for
DI_OPT_DEBUG, DI_OPT_FMT_STR_LEN, DI_OPT_SCALE, and DI_OPT_BLOCK_SZ.
The value of DI_OPT_BLOCK_SZ will be either 1000 or 1024.
Initializes the format string iterator.
#include <di.h>
void di_format_iter_init (di_data);
di_data : The di_data structure returned from di_initialize.
Iterates through the format string.
#include <di.h>
int fmt;
fmt = di_format_iterate (di_data);
di_data : The di_data structure returned from di_initialize.
Returns each format string character. The valid format string options are defined in di.h. di allows other characters to be included in the format string.