cvs commit: src/lib/libc/stdlib Makefile.inc Symbol.map
strtonum.3 strtonum.c src/include stdlib.h
Andrey Chernov
ache at FreeBSD.ORG
Tue Mar 14 17:25:59 UTC 2006
On Tue, Mar 14, 2006 at 04:57:30PM +0000, Andre Oppermann wrote:
> andre 2006-03-14 16:57:30 UTC
>
> FreeBSD src repository
>
> Modified files:
> lib/libc/stdlib Makefile.inc Symbol.map
> include stdlib.h
> Added files:
> lib/libc/stdlib strtonum.3 strtonum.c
> Log:
> Import of OpenBSD's strtonum(3) which is a nicer version of strtoll(3)
> providing proper error checking and other improvements.
Error checking isn't so proper as said.
if (numstr == ep || *ep != '\0')
must be
if (numstr == ep || *ep != '\0' || errno == EINVAL)
I'll commit this, if no objections.
--
http://ache.pp.ru/
More information about the cvs-src
mailing list