On Tue, Jul 14, 2015 at 01:29:20PM -0700, Garrett Cooper wrote: > On Jul 14, 2015, at 12:16, Baptiste Daroussin <b...@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?
I do personnaly prefer strtonum over strtoll, so I usually use it. in that particular case of xargs I haven't chosen it, I just run into the issue due to atoi an looked at others BSDs to see if they had fixed the issue. OpenBSD had this fixed so I just grabbed it so not reinvent wheel. Bapt
pgpOs_EMT8muJ.pgp
Description: PGP signature