Size: 737
Comment: Added to Remarks.
|
← Revision 6 as of 2015-10-29 22:22:56 ⇥
Size: 737
Comment: Sorted links in Related Functions, see SGFunctions.
|
Deletions are marked like this. | Additions are marked like this. |
Line 26: | Line 26: |
.[[SDL_HasClipboardText]] | |
Line 27: | Line 28: |
.[[SDL_HasClipboardText]] |
SDL_GetClipboardText
Use this function to get UTF-8 text from the clipboard, which must be freed with SDL_free().
Syntax
char* SDL_GetClipboardText(void)
Return Value
Returns the clipboard text on success or NULL on failure; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
This functions returns NULL if there was not enough memory left for a copy of the clipboard's content.