---
name: "SDL_CDName"
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_CDName"
---

# SDL\_CDName(3)

Returns a human-readable, system-dependent identifier for the CD-ROM.

## NAME

SDL\_CDName - Returns a human-readable, system-dependent identifier for the CD-ROM.

## SYNOPSIS

**#include "SDL.h"**

**const char \*SDL\_CDName**(**int drive**);

## DESCRIPTION

Returns a human-readable, system-dependent identifier for the CD-ROM. **drive** is the index of the drive. Drive indices start to 0 and end at **SDL\_CDNumDrives()**-1.

## EXAMPLES

- •

  "/dev/cdrom"

- •

  "E:"

- •

  "/dev/disk/ide/1/master"

## SEE ALSO

**SDL\_CDNumDrives**
