DOKK / manpages / debian 13 / libsdl3-doc / SDL_main_func.3type.en
SDL_main_func(3type) SDL3 DATATYPES SDL_main_func(3type)

SDL_main_func - The prototype for the application's main() function

Defined in SDL3/SDL_main.h

#include "SDL3/SDL.h"
typedef int (SDLCALL *SDL_main_func)(int argc, char *argv[]);

an ANSI-C style main function's argc.
an ANSI-C style main function's argv.

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

This datatype is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer