Clarified SDL_GetClipboardText() documentation

Fixes https://github.com/libsdl-org/SDL/issues/14941
This commit is contained in:
Sam Lantinga
2026-02-01 09:20:52 -08:00
parent 4743f97c39
commit db573de24a

View File

@@ -109,7 +109,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_SetClipboardText(const char *text);
* This function returns an empty string if there is not enough memory left
* for a copy of the clipboard's content.
*
* \returns the clipboard text on success or an empty string on failure; call
* \returns the clipboard text on success, an empty string on failure or NULL if out of memory; call
* SDL_GetError() for more information. This should be freed with
* SDL_free() when it is no longer needed.
*