svn_revnum_parse

Function svn_revnum_parse 

Source
pub unsafe extern "C" fn svn_revnum_parse(
    rev: *mut svn_revnum_t,
    str_: *const c_char,
    endptr: *mut *const c_char,
) -> *mut svn_error_t
Expand description

Parse NULL-terminated C string @a str as a revision number and store its value in @a rev. If @a endptr is non-NULL, then the address of the first non-numeric character in @a str is stored in it. If there are no digits in @a str, then @a endptr is set (if non-NULL), and the error #SVN_ERR_REVNUM_PARSE_FAILURE error is returned. Negative numbers parsed from @a str are considered invalid, and result in the same error.

@since New in 1.5.