misc/69788: The processing result of strtoul() cannot judge whether it is an error.

SAKUMA takayuki takayuki at finet.fujitsu.com
Fri Jul 30 03:00:43 PDT 2004


The following reply was made to PR misc/69788; it has been noted by GNATS.

From: SAKUMA takayuki <takayuki at finet.fujitsu.com>
To: sos22 at cantab.net
Cc: freebsd-gnats-submit at FreeBSD.org, sos22 at srcf.ucam.org
Subject: Re: misc/69788: The processing result of strtoul() cannot judge
 whether it is an error.
Date: Fri, 30 Jul 2004 18:51:15 +0900 (JST)

 > > 2nd strtoul() will success, but errno == ERANGE.
 > > Is it necessary to set errno as 0 before calling 2nd strtoul() ?
 > Yes: a succesful library call leaves errno unchanged, rather than
 > setting it to 0 (usually).
 
 I understand. 
 Please close bug report as my mistake. 
 
 Thank you.
 
 ------
 takayuki at finet.fujitsu.com


More information about the freebsd-bugs mailing list