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?
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.
Makes sense. <limits.h> is part of the ANSI C standard and
implemented by both SVR4 and 4.3+ BSD systems, according to my
Lawrence Livermore National Laboratory
Bldg-451 Rm-2043, Mail Stop L-561
7000 East Avenue, Livermore, CA, 94550, USA
phone (925) 423-9605 (work) fax (925) 423-8704
Information Management & Graphics Grp., Services & Development Div.,
Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)
scitech mailing list | email@hidden
Do not post admin requests to the list. They will be ignored.