cvs commit: ALFS/nALFS/src init.c options.c
Kevin P. Fleming
kpfleming at linuxfromscratch.org
Tue Nov 4 19:54:05 PST 2003
Neven Has wrote:
> Are you sure errno is touched when strtol() doesn't fail? It's set to
> ERANGE on under/overflow, but I don't know if it's set to 0 otherwise.
> I know C standard doesn't guarantee that, I'm not sure about others.
> You should probably put errno = 0 before a call to strtol(), just to
> be sure.
Yep, you're right, I just saw a discussion about that on another mailing
list a day or two ago and it slipped my mind. Will go in with some other
More information about the alfs-log