Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: /usr/include/values.h on Mac OS X?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: /usr/include/values.h on Mac OS X?



At 11:08 AM -0800 11/24/03, Sean Ahern wrote:
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.


Makes sense. <limits.h> is part of the ANSI C standard and implemented by both SVR4 and 4.3+ BSD systems, according to my Stevens book.
--
Richard Cook 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
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/scitech
Do not post admin requests to the list. They will be ignored.

References: 
 >/usr/include/values.h on Mac OS X? (From: Andrei Sobolevskii <email@hidden>)
 >Re: /usr/include/values.h on Mac OS X? (From: Sean Ahern <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.