On 17 Nov 2009, at 19:34, Bruce Bauman wrote: > I am using the FpTimes function from the BaseUnix package. The > documentation says it returns -1 on an error, otherwise the number of > clock ticks since boot time. However, the return type of this function > is TClock, which is unsigned.
From "man 3 times": If an error occurs, times() returns the value ((clock_t)-1), and sets errno to indicate the error. So check against TClock(-1). Jonas_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal