SDL_ClearClipboardData(3)

πŸ’– SDL_ClearClipboardData πŸ’–

okay bestie, welcome to the SDL_ClearClipboardData(3) page from the SDL3 FUNCTIONS girlies ✨ this one lives in <SDL3/SDL_clipboard.h> and it's literally the "nvm, forget I said anything" button for your clipboard πŸŽ€


✨ NAME ✨

SDL_ClearClipboardData β€” bestie, it clears the clipboard data. that's it. that's the whole job. πŸ’…


✨ SYNOPSIS ✨

#include <SDL3/SDL_clipboard.h>

bool SDL_ClearClipboardData(void);

no arguments, no drama, just vibes πŸ¦‹


✨ RETURN VALUE ✨

it hands you back true when it ate and false when it flopped 😭 and if it flopped you gotta call SDL_GetError() to find out why β€” that's your group chat with the actual tea πŸ’€


✨ THREAD SAFETY ✨

⚠️ main thread only, no cap. this function should only be called on the main thread. do not be out here calling it from a side thread, that's not the move πŸ™ˆ

✨ AVAILABILITY ✨

this one's been around since SDL 3.2.0 πŸ‘‘ so if you're on anything older, she's not there yet, sorry bestie 🌸


✨ SEE ALSO ✨

  • SDL_SetClipboardData(3) β€” the other half of the duo, the one that actually puts stuff on the clipboard πŸ’–

and that's the whole page, you're so welcome 🫢 go clear that clipboard, main character energy only ✨

mwah πŸ’‹ β€” this was SDL_ClearClipboardData(3) from the Simple Directmedia Layer crew, SDL 3.4.18 edition 🌈

πŸ“¦ where this page comes from