---
name: "int"
section: "3"
platform: "macos"
package: "ksh"
version: "42"
release: "macOS 26.5"
platforms: ["macos"]
url: "https://new.carta.tech/int"
---

# int(3)

integral type macros

## NAME

int - integral type macros

## SYNOPSIS

```
#include <int.h>
```

## DESCRIPTION

This header defines macros for the local integral types. $1$2int\_1int\_1int\_1int\_1int\_1int\_1int\_1int\_1 $1$2int\_2int\_2int\_2int\_2int\_2int\_2int\_2int\_2 and $1$2int\_4int\_4int\_4int\_4int\_4int\_4int\_4int\_4 are always defined to integral types with a size of 1, 2 and 4 bytes respectively. The macros where *n* is a power of 2 greater than 4 are defined if the type is supported. $1$2int\_maxint\_maxint\_maxint\_maxint\_maxint\_maxint\_maxint\_max is defined to be the largest support integral type. $1$2int\_swapint\_swapint\_swapint\_swapint\_swapint\_swapint\_swapint\_swap is the [*swap*(3)](/swap/3.md) operation that converts a local $1$2intintintintintintintint to canonical big-endian representation.

## SEE ALSO

[swap(3)](/swap/3.md)
