> ... Now the reason why everything works out fine in the end, > is because "strtol()" _does_ return a "int", but suppose that it > actually returned a pointer, ... strtol() actually returns a "long". Such code would break on computers where "int != long", such as Alphas running DEC UNIX. I missed part of this discussion, but strtol() is defined in stdlib.h and in my exerience it is a safe header file to include, compatibility-wise. -- Konstantin Olchanski Physics Department, Brookhaven National Laboratory, Long Island, New York olchansk@bnl.gov
This archive was generated by hypermail 2b29 : Wed Apr 05 2000 - 15:52:00 EDT