Function currency_exists

Source
#[no_mangle]
pub unsafe extern "C" fn currency_exists(
    code_ptr: *const c_char,
) -> u8
Expand description

Checks whether a currency code exists in the global map for FFI.

§Panics

Panics if the internal mutex CURRENCY_MAP is poisoned when locking.

§Safety

Assumes code_ptr is a valid NUL-terminated UTF-8 C string pointer.