Extracting sizes from limits.h and float.h

According to K&R, these header files give me the sizes to int, char, float etc. I can't find any mention in those located in /usr/include/.

I tried:
# man 3 limits
Code:
No entry for limits in section 3 of the manual

But: http://compute.cnr.berkeley.edu/cgi-bin/man-cgi?limits.h+3
CHAR_BIT

Number of bits in a type char.

CHAR_MAX

Maximum value of type char.

CHAR_MIN

Minimum value of type char.

DBL_DIG

Digits of precision of type double.

DBL_MAX

Maximum decimal value of a double.

DBL_MIN

Minimum decimal value of a double.

FLT_DIG

Digits of precision of type float.

FLT_MAX

Maximum decimal value of a float.

FLT_MIN

Minimum decimal value of a float.

SunOS 5.10 Last change: 8 April 2004 17

Headers limits.h(3HEAD)

INT_MIN

Minimum value of type int.

How do I find these inside FreeBSD?
Could anyone give me any hints please?
 
They're in /usr/include/sys/limits.h. The file you are referring to is sys/limits.h.
 
SirDice said:
They're in /usr/include/sys/limits.h. The file you are referring to is sys/limits.h.

Thanks! I did run a find and it fetched them all but I didn't think that any of them would be different (apart from architecture differences). How come one file refers to Operating System limits and the other to compiler/libc limits? (Or may be better to ask how come two different sets of definitions have the same name?)
 
Back
Top