On Wed, Nov 30, 2005 at 06:00:07PM -0500, Andrew Dunstan wrote: > LONG_MIN/LONG_MAX might be the actual values provided, too, mightn't > they? checking for ERANGE seems like the only viable test.
Errno needs to be checked in any case for just that reason; the question was whether checking *only* errno is sufficient to detect an error. According to the standard it is. -- Michael Fuhr ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend