diff options
author | Karl Williamson <khw@cpan.org> | 2020-04-04 20:54:05 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-04-04 21:53:53 -0600 |
commit | b9abeb0c03569f216278385fa100db0891ff33aa (patch) | |
tree | cb37ae4f0bfd10768c85598d635dc7e38aaa206c /numeric.c | |
parent | ee371330f17a3e0efeaa1cc02a9af099ed2e5b0c (diff) | |
download | perl-b9abeb0c03569f216278385fa100db0891ff33aa.tar.gz |
perlapi: Clarify grok_atoUV()
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -424,7 +424,7 @@ Perl_grok_bin_oct_hex(pTHX_ const char *start, s = s0; /* s0 potentially advanced from 'start' */ /* Unroll the loop so that the first 8 digits are branchless except for the - * switch. A ninth one overflows a 32 bit word. */ + * switch. A ninth hex one overflows a 32 bit word. */ switch (len) { case 0: return 0; @@ -1281,7 +1281,8 @@ If you constrain the portion of C<pv> that is looked at by this function (by passing a non-NULL C<endptr>), and if the intial bytes of that portion form a valid value, it will return TRUE, setting C<*endptr> to the byte following the final digit of the value. But if there is no constraint at what's looked at, -all of C<pv> must be valid in order for TRUE to be returned. +all of C<pv> must be valid in order for TRUE to be returned. C<*endptr> is +unchanged from its value on input if FALSE is returned; The only characters this accepts are the decimal digits '0'..'9'. |