[][src]Function libipt_sys::pt_image_copy

pub unsafe extern "C" fn pt_image_copy(
    image: *mut pt_image,
    src: *const pt_image
) -> c_int

Copy an image.

Adds all sections from @src to @image. Sections that could not be added will be ignored.

Returns the number of ignored sections on success, a negative error code otherwise.

Returns -pte_invalid if @image or @src is NULL.