al_get_clipboard_text(3alleg5)

al_get_clipboard_text3alleg5

Allegro 5 api

Usage

#include <allegro5/allegro.h>
char *al_get_clipboard_text(ALLEGRO_DISPLAY *display)

Overview

This function returns a pointer to a string, allocated with al_malloc(3alleg5) with the text contents of the clipboard if available. If no text is available on the clipboard then this function returns NULL. You must call al_free(3alleg5) on the returned pointer when you don’t need it anymore.

Beware that text on the clipboard on Windows may be in Windows format, that is, it may have carriage return newline combinations for the line endings instead of regular newlines for the line endings on Linux or OSX.

Since

5.1.12

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

From allegro5-doc 2:5.2.10.1+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.