ruby_scan_oct

Function ruby_scan_oct 

Source
pub unsafe extern "C" fn ruby_scan_oct(
    str_: *const c_char,
    len: size_t,
    consumed: *mut size_t,
) -> c_ulong
Expand description

Interprets the passed string as an octal unsigned integer. Stops when encounters something not understood.

@param[in] str C string to scan. @param[in] len Length of str. @param[out] consumed Return value buffer. @return Parsed integer. @post ret is the number of characters read.

@internal

ยงNo consideration is made for integer overflows. As the return value is unsigned this function has fully defined behaviour, but you cannot know if there was an integer wrap-around or not.

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3