SDL_GetPlatform - Get the name of the platform.
Contents
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);
