logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetPlatform - Get the name of the platform.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                                 SDL_GetPlatform(3)

Description

       Here are the names returned for some (but not all) supported platforms:

       • "Windows"

       • "macOS"

       • "Linux"

       • "iOS"

       • "Android"

Name

       SDL_GetPlatform - Get the name of the platform.

Return Value

       Returns  the  name  of  the  platform.  If  the  correct platform name is not available, returns a string
       beginning with the text "Unknown".

Synopsis

#include<SDL3/SDL_platform.h>constchar*SDL_GetPlatform(void);

See Also