Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jul 2004 10:00:42 GMT
From:      SAKUMA takayuki <takayuki@finet.fujitsu.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/69788: The processing result of strtoul() cannot judge whether it is an error.
Message-ID:  <200407301000.i6UA0gt1085011@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/69788; it has been noted by GNATS.

From: SAKUMA takayuki <takayuki@finet.fujitsu.com>
To: sos22@cantab.net
Cc: freebsd-gnats-submit@FreeBSD.org, sos22@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@finet.fujitsu.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407301000.i6UA0gt1085011>