#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_serial_port_clone(
port: *const PamojaSerialPort,
) -> *mut PamojaSerialPortExpand description
Gives another holder the same port, such as a thread that reads while the caller writes.
§Arguments
port- the port.
§Returns
A new handle to the same port, released with pamoja_serial_port_free, or null for a null
port.
§Safety
port must be a live handle or null.