SDL_main_func(3type)

SDL_main_func3type

The prototype for the application's main() function

Usage

#include "SDL3/SDL.h"

typedef int (SDLCALL *SDL_main_func)(int argc, char *argv[]);

Header file

Defined in SDL3/SDL_main.h

Function parameters

argc

an ANSI-C style main function's argc.

argv

an ANSI-C style main function's argv.

Return value

Returns an ANSI-C main return code; generally 0 is considered successful program completion, and small non-zero values are considered errors.

Availability

This datatype is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.