---
name: "al_create_event_queue"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_create_event_queue"
---

# al\_create\_event\_queue(3)

Allegro 5 API

## NAME

al\_create\_event\_queue - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  ALLEGRO_EVENT_QUEUE *al_create_event_queue(void)
  ```

## DESCRIPTION

Create a new, empty event queue, returning a pointer to the newly created object if successful. Returns NULL on error.

## SEE ALSO

[al\_register\_event\_source(3)](/al_register_event_source/3.md), [al\_destroy\_event\_queue(3)](/al_destroy_event_queue/3.md), [ALLEGRO\_EVENT\_QUEUE(3)](/ALLEGRO_EVENT_QUEUE/3.md)
