Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2014-01-09 00:46:55
Size: 671
Editor: urkle
Comment: add related function
Revision 5 as of 2015-07-21 18:27:48
Size: 737
Comment: Added to Remarks.
Deletions are marked like this. Additions are marked like this.
Line 23: Line 23:
''You can add useful comments here'' This functions returns NULL if there was not enough memory left for a copy of the clipboard's content.

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.


CategoryAPI, CategoryClipboard

None: SDL_GetClipboardText (last edited 2015-10-29 22:22:56 by PhilippWiesemann)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit