1al_get_clipboard_text(3) al_get_clipboard_text(3)
2
3
4
6 al_get_clipboard_text - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 char *al_get_clipboard_text(ALLEGRO_DISPLAY *display)
12
14 This function returns a pointer to a string, allocated with al_mal‐
15 loc(3) with the text contents of the clipboard if available. If no
16 text is available on the clipboard then this function returns NULL.
17 You must call al_free(3) on the returned pointer when you don't need it
18 anymore.
19
20 Beware that text on the clipboard on Windows may be in Windows format,
21 that is, it may have carriage return newline combinations for the line
22 endings instead of regular newlines for the line endings on Linux or
23 OSX.
24
26 5.1.12
27
29 al_set_clipboard_text(3), al_clipboard_has_text(3)
30
31
32
33Allegro reference manual al_get_clipboard_text(3)