riot_sys::bindgen

Function tsrb_add_one

Source
pub unsafe extern "C" fn tsrb_add_one(rb: *mut tsrb_t, c: u8) -> c_int
Expand description

@brief Add a byte to ringbuffer @param[in] rb Ringbuffer to operate on @param[in] c Character to add to ringbuffer @return 0 on success @return -1 if no space available