Skip to main content

parse_address

Function parse_address 

Source
pub(crate) fn parse_address(text: &str) -> Option<u32>
Expand description

Parses an address as strtoull(text, &end, 0) would, but only when the whole argument is a number that fits in 32 bits: 0x hex, leading-0 octal or decimal, no sign. None for anything else, rather than the address 0 that strtoul returns for text it cannot parse.