---
name: "SDL_CDNumDrives"
section: "3"
platform: "linux"
package: "libsdl1.2-dev"
version: "1.2.15+dfsg2-8"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_CDNumDrives"
---

# SDL\_CDNumDrives(3)

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

## NAME

SDL\_CDNumDrives - Returns the number of CD-ROM drives on the system.

## SYNOPSIS

**#include "SDL.h"**

**int SDL\_CDNumDrives**(**void**)

## DESCRIPTION

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

## SEE ALSO

**SDL\_CDOpen**
