Synopsis
#include <limits.h>
#define LONG_MAX 2147483647
Description

LONG_MAX is the maximum value for an object of type long int.

Portability

LONG_MAX conforms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).