NET_Quit(3)
NET_Quit π β¨
okay bestie, so this is a page from the SDL_net3 manual β and we're talking about NET_Quit(3), the "we're so done here" function. π
β¨ NAME β¨
NET_Quit β deinitialize the SDL_net library. yeah. the goodbye button. π
πΈ SYNOPSIS πΈ
#include <SDL3_net/SDL_net.h>
void NET_Quit(void);
that's it. no args. no return value. she takes nothing and gives nothing back, iconic behavior honestly. π
π¦ DESCRIPTION π¦
okay so you must call this when you're done with the library β like, probably at the end of your program, when you're packing up your little bags and heading out. π§³β¨
and here's the part that's lowkey so nice of her: it is safe to call this multiple times. she does not get mad. the library will only deinitialize once, and that happens when this function has been called the same number of times as NET_Init was successfully called. so the calls have to balance out, fr fr. it's giving very much "we go down together" energy. ππ«Ά
and once you've successfully deinitialized the library? it is safe to call NET_Init again to reinitialize it for further use. she can come back. she always comes back. main character energy. ππ
π THREAD SAFETY π
it is safe to call this function from any thread. no gatekeeping, no "sorry bestie this thread only" nonsense. every thread is welcome. π«Άβ¨
β AVAILABILITY β
this function is available since SDL_net 3.0.0. so if you're on anything older, no she is not there yet. π
π SEE ALSO π
NET_Init(3)β her other half, the one who actually starts everything. π
and that's the whole vibe check, bestie. go forth and clean up after yourself, your future self will be obsessed with you for it. πβ¨
lowkey reminder: the calls toNET_InitandNET_Quithave to match up, or she just sits there still initialized, waiting. don't do her like that. π
SDL_net manual, version SDL_net 3.2.0 β mwah, that's a wrap, slay, periodt. π ππ¦
π¦ where this page comes from
- fedora 43: SDL3_net-devel 3.2.0-2.fc43 Β· Zlib
- fedora 43: SDL3_net-devel 3.2.0-2.fc43 Β· Zlib
- fedora 44: SDL3_net-devel 3.2.0-2.fc44 Β· Zlib
- fedora 44: SDL3_net-devel 3.2.0-2.fc44 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms