[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
bfd_scan_vma
bfd_vma bfd_scan_vma (const char *string, const char **end, int base); |
strtoul
, a numerical expression
string into a bfd_vma
integer, and return that integer.
(Though without as many bells and whistles as strtoul
.)
The expression is assumed to be unsigned (i.e., positive).
If given a base, it is used as the base for conversion.
A base of 0 causes the function to interpret the string
in hex if a leading "0x" or "0X" is found, otherwise
in octal if a leading zero is found, otherwise in decimal.
If the value would overflow, the maximum bfd_vma
value is
returned.