Menu

Options

Brad Lanam

Wiki Home

Option Processing

Note that not all options are accessible. If you want access to other options, please contact the developers.


di_check_option

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.

  • DI_OPT_POSIX_COMPAT
  • DI_OPT_QUOTA_CHECK
  • DI_OPT_DISP_CSV
  • DI_OPT_DISP_CSV_TAB
  • DI_OPT_EXCL_LOOPBACK
  • DI_OPT_DISP_JSON
  • DI_OPT_DISP_TOTALS
  • DI_OPT_DISP_HEADER
  • DI_OPT_DISP_ALL
  • DI_OPT_LOCAL_ONLY
  • DI_OPT_NO_SYMLINK
  • DI_OPT_DEBUG
  • DI_OPT_FMT_STR_LEN
  • DI_OPT_SCALE
  • DI_OPT_BLOCK_SZ

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.


di_format_iter_init

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.


di_format_iterate

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.

Wiki Home


Related

Wiki: Home