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/ _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"