What is the Linux equivalent for MAXDWORD?

In Microsoft Visual C ++, there is a constant called MAXDWORD defined in winnt.h as follows:

#define MAXDWORD 0xffffffff

It is useful as a high initial value for "double" when you are looking for the lowest value in a collection. Google, although I can, I can’t find the equivalent in the standard headers on Linux, but I bet there should be one.

I use:

  • uBuntu 10.04 64bit
  • g ++ 4.4.3
+5
source share
2 answers

- std::numeric_limits. , std::numeric_limits<long>::max(). long. numeric_limits .

+7
#  define UINT_MAX  4294967295U

/usr/include/limits.h

+3

All Articles