SDL_SetStringProperty(3)
π SDL_SetStringProperty π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the man pages, where we set a string property in a group of properties and we do it flawlessly. no cap. β¨
β¨ NAME β¨
SDL_SetStringProperty β set a string property in a group of properties. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_properties.h>
bool SDL_SetStringProperty(SDL_PropertiesID props, const char *name, const char *value);
like... look at her. three little params and she's doing the most. π
π¦ DESCRIPTION π¦
so the tea is: this function makes a copy of the string. copy. duplicate. clone. it's giving "i don't need you anymore" energy toward your original buffer, because the caller does not have to preserve the data after this call completes. you can free it, stack-allocate it, let it go out of scope, whatever β she already has her own copy and she is thriving. π«Ά
π FUNCTION PARAMETERS π
propsβ the properties to modify. this is the group chat you're sending the message into. πnameβ the name of the property to modify. which little slot are we updating, bestie?valueβ the new value of the property, orNULLto delete the property. yeah, passingNULLis the "leave the group chat" button. πͺ
β RETURN VALUE β
returns true on success or false on failure. and if it fails?? call SDL_GetError() for more information, because she will tell you what went wrong. π
π₯ THREAD SAFETY π₯
it is safe to call this function from any thread. yes ma'am. every thread, all at once, no drama. main character energy for everybody. π
π AVAILABILITY π
this function is available since SDL 3.2.0. so if you're on something older, that's a no from her. π
π SEE ALSO π
SDL_GetStringProperty(3)β the read side of the relationship, go check her out π
Simple Directmedia Layer said it best, and the version on deck is SDL 3.4.18. mwah, take care of yourselves, set your string properties responsibly, and i'll see you in the next man page. 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