poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug default/26899] New: Better error handling in `atoi'


From: jose.marchesi at oracle dot com
Subject: [Bug default/26899] New: Better error handling in `atoi'
Date: Sat, 14 Nov 2020 14:13:34 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=26899

            Bug ID: 26899
           Summary: Better error handling in `atoi'
           Product: poke
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: default
          Assignee: unassigned at sourceware dot org
          Reporter: jose.marchesi at oracle dot com
                CC: poke-devel at gnu dot org
  Target Milestone: ---

Currently `atoi' is unable to report where a parsed integer ends in the given
string:

(poke) atoi ("23x")
23L

I think there are two options for this:
a) To raise an error if the given string doesn't encode a valid integer
   in its totality, or
b) To somehow return where the parsed integer ends in the string.

Also, errors are not currently handled:

(poke) atoi ("a")
0L

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]