---
title: "heapspace | open.mp"
description: "Retorna a quantidade de memória disponível para heap/stack em bytes."
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/functions/heapspace
language: pt-BR
---

# heapspace

## Descrição

Retorna a quantidade de memória disponível para heap/stack em bytes.

## Exemplos

```c
public OnGameModeInit()
{
    printf("Heapspace: %i kilobytes", heapspace() / 1024);
    return 1;
}
```
