---
name: "SDL_VideoDriverName"
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_VideoDriverName"
---

# SDL\_VideoDriverName(3)

Obtain the name of the video driver

## NAME

SDL\_VideoDriverName - Obtain the name of the video driver

## SYNOPSIS

**#include "SDL.h"**

**char \*SDL\_VideoDriverName**(**char \*namebuf, int maxlen**);

## DESCRIPTION

The buffer pointed to by **namebuf** is filled up to a maximum of **maxlen** characters (include the NULL terminator) with the name of the initialised video driver. The driver name is a simple one word identifier like "x11" or "windib".

## RETURN VALUE

Returns **NULL** if video has not been initialised with **SDL\_Init** or a pointer to **namebuf** otherwise.

## SEE ALSO

**SDL\_Init** **SDL\_InitSubSystem**
