SDL_CDEject(3)
πΏ NAME πΏ
SDL_CDEject β the little function that yeets a CDROM out of the tray, bestie π
This one lives in the SDL API Reference manual, and honestly? It's giving "one job, does it perfectly" energy. β¨
π SYNOPSIS π
#include "SDL.h"
int SDL_CDEject(SDL_CD *cdrom);
Like. That's the whole thing. Three lines. Iconic. π
πΈ DESCRIPTION πΈ
Okay so here's the tea: SDL_CDEject ejects the given cdrom. π¦
That's it. That's the function. You hand it a cdrom, it pops that disc out, no questions asked. It is not doing a little dance about it, it is not negotiating, it is simply β¨ ejecting β¨. Main character behavior fr fr.
π RETURN VALUE π
0β slay! It worked, the CD is out, we love to see it π«Ά-1β it hit an error π something went wrong and the disc said "not today"
π SEE ALSO π
SDL_CDβ the whole CD subsystem, go read that too, iykyk π
And that's the vibe check on SDL_CDEject. This page came from the SDL manual and it's dated Tue 11 Sep 2001, 22:58 β yes, that long ago, and she's still out here ejecting CDs with zero drama. Obsessed. πβ¨
π¦ where this page comes from
- debian bookworm: libsdl1.2-dev 1.2.15+dfsg2-8 Β· LGPL-2.1-or-later
- nixos 26.05: SDL_sixel 0-unstable-2016-02-06
- nixpkgs unstable: SDL_sixel 0-unstable-2016-02-06
- ubuntu jammy: libsdl1.2-dev 1.2.15+dfsg2-6 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms