---
name: "al_create_event_queue"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_create_event_queue/3alleg5"
---

# al\_create\_event\_queue(3alleg5)

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(3alleg5), al\_destroy\_event\_queue(3alleg5), ALLEGRO\_EVENT\_QUEUE(3alleg5)
