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

# SDL\_FunctionPointer(3type)

A generic function pointer.

## NAME

SDL\_FunctionPointer - A generic function pointer.

## HEADER FILE

Defined in SDL3/SDL\_stdinc.h

## SYNOPSIS

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

**typedef void (\*SDL\_FunctionPointer)(void);**

## DESCRIPTION

In theory, generic function pointers should use this, instead of **void** *,* since some platforms could treat code addresses differently than data addresses. Although in current times no popular platforms make this distinction, it is more correct and portable to use the correct type for a generic pointer.

If for some reason you need to force this typedef to be an actual **void** , perhaps to work around a compiler or existing code, you can define

**SDL\_FUNCTION\_POINTER\_IS\_VOID\_POINTER** before including any SDL headers.

## AVAILABILITY

This datatype is available since SDL 3.2.0.
