pub unsafe fn clist_delete(mut lst: *mut clist, mut iter: *mut clistiter) -> *mut clistiter {
    let mut ret: *mut clistiter = 0 as *mut clistiter;
    if iter.is_null() {
        return 0 as *mut clistiter;
    }
    if !(*iter).previous.is_null() {
        (*(*iter).previous).next = (*iter).next
    } else {
        (*lst).first = (*iter).next
    }
    if !(*iter).next.is_null() {
        (*(*iter).next).previous = (*iter).previous;
        ret = (*iter).next
    } else {
        (*lst).last = (*iter).previous;
        ret = 0 as *mut clistiter
    }
    free(iter as *mut libc::c_void);
    (*lst).count -= 1;
    return ret;
}
/* Deletes the element pointed by the iterator.
Returns an iterator to the next element. */
Deletes the element pointed by the iterator.
Returns an iterator to the next element.
Deletes the element pointed by the iterator . Returns an iterator to the next element .
pub unsafe fn clist_delete(mut lst: *mut clist, mut iter: *mut clistiter) -> *mut clistiter {
    let mut ret: *mut clistiter = 0 as *mut clistiter;
    if iter.is_null() {
        return 0 as *mut clistiter;
    }
    if !(*iter).previous.is_null() {
        (*(*iter).previous).next = (*iter).next
    } else {
        (*lst).first = (*iter).next
    }
    if !(*iter).next.is_null() {
        (*(*iter).next).previous = (*iter).previous;
        ret = (*iter).next
    } else {
        (*lst).last = (*iter).previous;
        ret = 0 as *mut clistiter
    }
    free(iter as *mut libc::c_void);
    (*lst).count -= 1;
    return ret;
}
pub unsafe fn clist_delete ( mut lst : * mut clist , mut iter : * mut clistiter ) -> * mut clistiter { let mut ret : * mut clistiter = 0 as * mut clistiter ; if iter . is_null ( ) { return 0 as * mut clistiter ; } if ! ( * iter ) . previous . is_null ( ) { ( * ( * iter ) . previous ) . next = ( * iter ) . next } else { ( * lst ) . first = ( * iter ) . next } if ! ( * iter ) . next . is_null ( ) { ( * ( * iter ) . next ) . previous = ( * iter ) . previous ; ret = ( * iter ) . next } else { ( * lst ) . last = ( * iter ) . previous ; ret = 0 as * mut clistiter } free ( iter as * mut libc :: c_void ) ; ( * lst ) . count -= 1 ; return ret ; }
Deletes the element pointed by the iterator.
Deletes the element pointed by the iterator .
lst
*mut clist
iter
*mut clistiter
lst
*mut clist
iter
*mut clistiter