Date: Tue, 14 Jul 2015 17:48:40 -0500 From: Pedro Giffuni <pfg@FreeBSD.org> To: d@delphij.net, Garrett Cooper <yaneurabeya@gmail.com>, Baptiste Daroussin <bapt@FreeBSD.org> Cc: src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r285552 - head/usr.bin/xargs Message-ID: <55A591C8.1030105@FreeBSD.org> In-Reply-To: <55A574BA.4090700@delphij.net> References: <201507141916.t6EJGEG1083928@repo.freebsd.org> <48222CD1-7087-4C9A-A586-71F6A37A601C@gmail.com> <55A574BA.4090700@delphij.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 07/14/15 15:44, Xin Li wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > On 07/14/15 13:29, Garrett Cooper wrote: >> On Jul 14, 2015, at 12:16, Baptiste Daroussin <bapt@FreeBSD.org> >> wrote: >> >>> Author: bapt Date: Tue Jul 14 19:16:14 2015 New Revision: 285552 >>> URL: https://svnweb.freebsd.org/changeset/base/285552 >>> >>> Log: Convert atoi(3) to stronum(3) which allows to arguments and >>> report proper errors to the users >> Is strtonum preferred over strtoll, etc? > strtonum(3) is a wrapper of strtoll() and provides more functionality > like range checking, so I think the answer would be yes. There is only the issue that strtonum(3) is non-standard so I have resisted the temptation to blindly replace atoi(3) in existing code. Pedro.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55A591C8.1030105>