Andrei Sobolevskii wrote:
This is perhaps a very trivial question. On a number of Unix-type
systems with which I am familiar (of which none is of BSD type), in
/usr/include there is a file values.h containing definitions of
various useful system-dependent constants, such as the largest double.
On my new PowerBook G4 with Mac OS X 10.2, I couldn't find one. Is it
BSD specific or Mac OS X specific? Am I missing some obvious
substitute for values.h?
Try "limits.h".
I looked on my Linux (RH9) box, and both files exist. However, the
comments at the of "values.h" say:
/* This interface is obsolete. New programs should use
<limits.h> and/or <float.h> instead of <values.h>. */
I checked on my 10.2 box, and limits.h exists. Same with my 10.3 box.