tg_line_copy

Function tg_line_copy 

Source
pub unsafe extern "C" fn tg_line_copy(
    line: *const tg_line,
) -> *mut tg_line
Expand description

Copies a line @param line Input line, caller retains ownership. @return A duplicate of the provided line. @return NULL if out of memory @note The caller is responsible for freeing with tg_line_free(). @note This method performs a deep copy of the entire geometry to new memory.