On Thu, Dec 2, 2010 at 10:04 PM, Ethan Dicks <ethan.dicks at gmail.com> wrote:
There are many things that folks commonly do that are
officially
undefined... like strlen(NULL) ?(that returned 0 on an NCR box but
segfaulted a SPARC - the NCR guys tried to claim it proved the Sun was
broken, but I had to point out that it's undefined).
Years ago, I worked at the institute for simulation and training in
orlando. They had a warfare simulator that ran on a collection of
computers over the network. My project was to port the system from
c++ on dos (borland iirc) to solaris. The programmer had a lot of
code that passed null pointers to printf("%s\n",...) instead of a
(valid) pointer to a null string, that is, a pointer to a null.
Worked on dos. Crashed on unix.
brian