pub unsafe extern "C" fn alpm_pkg_changelog_read(
ptr: *mut c_void,
size: usize,
pkg: *const alpm_pkg_t,
fp: *mut c_void,
) -> usize
Expand description
Read data from an open changelog ‘file stream’. Similar to fread in functionality, this function takes a buffer and amount of data to read. If an error occurs pm_errno will be set. @param ptr a buffer to fill with raw changelog data @param size the size of the buffer @param pkg the package that the changelog is being read from @param fp a ‘file stream’ to the package changelog @return the number of characters read, or 0 if there is no more data or an error occurred.