Return a pointer to the internal array of all runtime option values.
int* mco_runtime_get_options_arr(void);
This function returns a direct pointer to the global array that stores the current values of all runtime options. The array is indexed by the
MCO_RT_OPTION_*constants (e.g.,MCO_RT_OPTION_DATETIME_PRECISION,MCO_RT_OPTION_HNSW_M, etc.).The size of the array is
MCO_RT_OPTION_LASTelements.Warning: This is a low-level interface intended primarily for internal use, diagnostics, or advanced debugging. Modifying the array contents directly bypasses validation and may lead to undefined behavior. Use
mco_runtime_setoption()to safely change option values.See Runtime Options for the complete list of available options and their meanings.
int*
int main(int argc, char* argv[])
{
int* options;
int precision;
mco_runtime_start();
...
options = mco_runtime_get_options_arr();
precision = options[MCO_RT_OPTION_DATETIME_PRECISION];
printf("Datetime precision: %d\n", precision);
...
return 0;
}