Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2019 16:23:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 241254] atoi(3) wrongly states that atoi() is equivalent to (int)strtol(nptr, (char **)NULL, 10);
Message-ID:  <bug-241254-227-I8xZnR5NHM@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-241254-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-241254-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241254

Brooks Davis <brooks@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Closed
         Resolution|---                         |Not A Bug
                 CC|                            |brooks@FreeBSD.org

--- Comment #1 from Brooks Davis <brooks@FreeBSD.org> ---
The implementation of atoi() is literally:

int
atoi(const char *str)
{
        return (int)strtol(str, NULL, 10);
}

so this statement is entirely correct.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241254-227-I8xZnR5NHM>