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