This web mail archive is frozen.
This page is part of a frozen web archive of this mailing list.
You can still navigate around this archive, but know that no new mails
have been added to it since July of 2016.
Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.
> I.e., it returns a long. Although some compilers might do the right
> thing, conversions should be explicitly shown.
Isn't the behavior guaranteed by the C standard? And I can't even
imagine a way for a compiler to get
intvar = strtol(foo);
wrong, and it seems even more implausible that such a bug would be
cured just by adding a cast to int.
Maybe you could get the same effect by leaving the cast out and
wearing a magnetized titanium bracelet while writing the code?