SDL_GetClipboardMimeTypes(3)
π NAME π
SDL_GetClipboardMimeTypes β bestie, this is how you pull up the whole list of mime types chillin' in the clipboard β¨
π SYNOPSIS π
#include <SDL3/SDL_clipboard.h>
char ** SDL_GetClipboardMimeTypes(size_t *num_mime_types);
πΈ FUNCTION PARAMETERS πΈ
num_mime_typesβ a pointer that gets filled with the number of mime types. She's optional, so you can passNULLif you literally do not care and just want the array π
β¨ RETURN VALUE β¨
It hands you a null-terminated array of strings stuffed with mime types π«Ά
But if it fails? You get NULL, and that's your cue to go call SDL_GetError() for the tea on what went wrong π
Heads up babes: when you're done with this array, you must free it with SDL_free(). Not freeing it is giving leaked memory, and we do not claim that energy π
π§ THREAD SAFETY π§
Main thread only. Like, only only. Do not be out here calling this from a worker thread, that's not the vibe β οΈ
π AVAILABILITY π
This one's been serving since SDL 3.2.0 π
π SEE ALSO π
SDL_SetClipboardData(3)β the one that puts stuff in the clipboard, iykyk π₯
okay that's the whole page bestie, go forth and read mime types π
this lil manual moment comes to you from Simple Directmedia Layer, rocking SDL 3.4.18 β slay, no cap, periodt πβ¨π¦
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms