rusage overflow
Andreas Beyer
beyer@imb-jena.de
Fri May 9 09:06:00 GMT 2003
Hi,
I am using getrusage() to get some information on the memory usage of my
program. Occasionally the values in the rusage structure become larger
than the maximum long int (i.e. I get negative values).
Interpreting the overflowed long int values as positive values should
give the correct number if memory usage is estimated by additive operations.
Is it safe to interpret the long int entries in the rusage structure as
unsigned long int?
Thanks,
Andreas
More information about the Gcc-help
mailing list