delorie.com/archives/browse.cgi | search |
> Date: Tue, 6 Aug 2013 11:59:45 -0700 (PDT) > From: Georg Potthast <dosusb AT googlemail DOT com> > > I did not post further messages because I understand that the djgpp developers could not be convinced to make a change here. As Rod pointed out with the links he provided this topic has been discussed already 25 years ago and no change was made yet. This is not about DJGPP developers. This is how C library functions behave everywhere. If you want your programs to run on as many platforms as possible, you should always check for NULL pointers before dereferencing them. Everybody else does. > The library I am using returns NULL instead of an empty string. So I will have to trap NULL before calling atoi() and fill the integer variable with zero then. That is indeed the way to go, if you want your programs to be reliable.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |