Skip to main content

wxd_Config_ReadString

Function wxd_Config_ReadString 

Source
pub unsafe extern "C" fn wxd_Config_ReadString(
    config: *const wxd_ConfigBase_t,
    key: *const c_char,
    buffer: *mut c_char,
    buffer_len: usize,
    default_val: *const c_char,
) -> c_int
Expand description

Reads a string value. @param config Pointer to the config object. @param key The key to read. @param buffer Buffer to store the value. @param buffer_len Length of the buffer. @param default_val Default value if key not found. @return Length of the value read, or -1 on error.