---
name: "al_set_clipboard_text"
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_set_clipboard_text"
---

# al\_set\_clipboard\_text(3)

Allegro 5 API

## NAME

al\_set\_clipboard\_text - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  bool al_set_clipboard_text(ALLEGRO_DISPLAY *display, const char *text)
  ```

## DESCRIPTION

This function pastes the text given as an argument to the clipboard.

## SINCE

5\.1.12

## SEE ALSO

[al\_get\_clipboard\_text(3)](/al_get_clipboard_text/3.md), [al\_clipboard\_has\_text(3)](/al_clipboard_has_text/3.md)
