al_get_clipboard_text(3)
β¨ al_get_clipboard_text(3) β¨
okay so this page is from the Allegro reference manual, and itβs all about the Allegro 5 API function al_get_clipboard_text β clipboard text retrieval, but make it main character energy π
π NAME π
al_get_clipboard_text β Allegro 5 API π¦
π SYNOPSIS
#include <allegro5/allegro.h>
char *al_get_clipboard_text(ALLEGRO_DISPLAY *display)
πΈ DESCRIPTION πΈ
This function returns a pointer to a string, allocated with al_malloc(3), that holds the text contents of the clipboard if available. Cute, right? β¨
If no text is available on the clipboard, then this function returns NULL. No text, no string, no drama π.
You must call al_free(3) on the returned pointer when you donβt need it anymore. Thatβs not optional, bestie β free your memory, slay responsibly π«Ά.
β οΈ Beware: 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. Itβs giving cross-platform plot twist π β no cap.
π SINCE
5.1.12 β iconic since then, periodt β¨
π SEE ALSO
Signed off with love by the Allegro reference manual π β this page is al_get_clipboard_text(3), the SINCE is 5.1.12, and the footer didnβt bring a date, so no invented date here, bestie ππ
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms