Function eccodes_sys::codes_index_get_string[][src]

pub unsafe extern "C" fn codes_index_get_string(
    index: *const codes_index,
    key: *const c_char,
    values: *mut *mut c_char,
    size: *mut size_t
) -> c_int
Expand description

Get the distinct values of the key in argument contained in the index. The key must belong to the index. This function is used when the type of the key was explicitly defined as string or when the native type of the key is string.

@param index : an index created from a file. The index must have been created with the key in argument. @param key : key for which the values are returned @param values : array of values. The array must be allocated before entering this function and its size must be enough to contain all the values. @param size : size of the values array @return 0 if OK, integer value on error