SDL_CDNumDrives(3)

✨ NAME ✨

SDL_CDNumDrives β€” bestie, it literally just tells you how many CD-ROM drives you got on your system πŸ’ΏπŸ’–

This one's from the SDL API Reference, and yeah, the manual name is right there in the title because that's how manpages do 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

#include "SDL.h"

int SDL_CDNumDrives(void)

No arguments, no drama. She takes void and she gives you a number. Iconic behaviour honestly πŸ’…


🌸 DESCRIPTION 🌸

okay so here's the whole thing, and I mean the whole thing because this function is not complicated:

Returns the number of CD-ROM drives on the system.

That's it. That's the function. She counts your CD-ROM drives and hands you back the count as an int, and then she goes back to her business. Lowkey the most chill call in all of SDL 🌈

It's giving "one job and I do it flawlessly." Not me being obsessed with a function that has zero parameters 😭

fr fr, that is the entire documented behaviour β€” nothing more, nothing less. Don't go reading extra powers into it, bestie πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

  • SDL_CDOpen β€” the next step when you actually wanna open one of those drives you just counted πŸ‘‘

and that's a wrap, my love πŸŽ€ this page came straight out of the SDL API reference, dated Tue 11 Sep 2001, 22:58 β€” yes, an actual vintage. Old but still slaying πŸ’…βœ¨ bye bestie, go count some drives πŸ¦‹

πŸ“¦ where this page comes from