CKTIS / C
int64_t — signed 64-bit integer type
int64_t from <stdint.h> names a signed integer type with exactly 64 bits and no padding bits. Its availability depends on the implementation.
Version: C23; repository compiler flag, production runtime not attested
Syntax
#include <stdint.h>
int64_t name = 0;int64_t is a typedef name declared in <stdint.h>. It has exactly 64 bits, no padding bits, and a range from −9223372036854775808 to 9223372036854775807. Do not assume it aliases long or long long.
The type is available when the implementation provides a suitable integer type. The INT64_MAX macro lets you check availability. Overflow during signed arithmetic causes undefined behavior. For printf output, use PRId64 from <inttypes.h> rather than assuming compatibility with %ld or %lld.
Examples
#include <stdint.h>
#include <inttypes.h>
#include <stdio.h>
#ifndef INT64_MAX
#error "int64_t is required"
#endif
int main(void)
{
int64_t value = 40;
value += 2;
printf("%" PRId64 "\n", value);
return 0;
}
Result
42
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.