[][src]Function alpm_sys_fork::alpm_pkg_get_version

pub unsafe extern "C" fn alpm_pkg_get_version(
    pkg: *mut alpm_pkg_t
) -> *const c_char

Returns the package version as a string. This includes all available epoch, version, and pkgrel components. Use alpm_pkg_vercmp() to compare version strings if necessary. @param pkg a pointer to package @return a reference to an internal string