ipfrs_has

Function ipfrs_has 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ipfrs_has( client: *mut IpfrsClient, cid: *const c_char, out_exists: *mut c_int, ) -> c_int
Expand description

Check if a block exists by CID

§Arguments

  • client - Pointer to IpfrsClient
  • cid - Null-terminated CID string
  • out_exists - Output pointer to receive existence flag (1 = exists, 0 = not found)

§Returns

Error code (0 for success)

§Safety

  • client must be a valid pointer from ipfrs_client_new()
  • cid must be a valid null-terminated UTF-8 string
  • out_exists must be a valid pointer