---
name: "SDL_SIZE_MAX"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_SIZE_MAX"
---

# SDL\_SIZE\_MAX(3)

The largest value that a size\_t can hold for the target platform.

## NAME

SDL\_SIZE\_MAX - The largest value that a **size\_t** can hold for the target platform.

## HEADER FILE

Defined in SDL3/SDL\_stdinc.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**#define SDL\_SIZE\_MAX SIZE\_MAX**

## DESCRIPTION

**size\_t** is generally the same size as a pointer in modern times, but this can get weird on very old and very esoteric machines. For example, on a 16-bit Intel 286, you might have a 32-bit "far" pointer (16-bit segment plus 16-bit offset), but **size\_t** is 16 bits, because it can only deal with the offset into an individual segment.

In modern times, it's generally expected to cover an entire linear address space. But be careful!

## AVAILABILITY

This macro is available since SDL 3.2.0.
