---
name: "SDL_HasClipboardData"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_HasClipboardData"
---

# SDL\_HasClipboardData(3)

Query whether there is data in the clipboard for the provided mime type.

## NAME

SDL\_HasClipboardData - Query whether there is data in the clipboard for the provided mime type.

## HEADER FILE

Defined in SDL3/SDL\_clipboard.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**bool SDL\_HasClipboardData(const char \*mime\_type);**

## FUNCTION PARAMETERS

- *mime\_type*

  the mime type to check for data for.

## RETURN VALUE

Returns true if there exists data in clipboard for the provided mime type, false if it does not.

## THREAD SAFETY

This function should only be called on the main thread.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_SetClipboardData**(3)](/SDL_SetClipboardData/3.md), **•**(3), [**SDL\_GetClipboardData**(3)](/SDL_GetClipboardData/3.md)
