Re: dumpcdat.c

From: Konstantin Olchanski (olchansk@ux1.phy.bnl.gov)
Date: Wed Apr 05 2000 - 15:49:50 EDT

  • Next message: Christian Holm Christensen: "Re: dumpcdat.c"

    > ... 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