pkgcraft_pkg_cmp

Function pkgcraft_pkg_cmp 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pkgcraft_pkg_cmp<'a>( p1: *mut Pkg<'a>, p2: *mut Pkg<'a>, ) -> c_int
Expand description

Compare two packages returning -1, 0, or 1 if the first package is less than, equal to, or greater than the second package, respectively.

ยงSafety

The arguments must be non-null Pkg pointers.