Scroll to navigation

SDL_GetNumProperties(3) SDL3 FUNCTIONS SDL_GetNumProperties(3)

NAME

SDL_GetNumProperties - Get the current number of items in a group of properties.

SYNOPSIS

#include <SDL3/SDL_properties.h>
int SDL_GetNumProperties(SDL_PropertiesID props);

DESCRIPTION

For an invalid SDL_PropertiesID, this returns zero and does not set an error message.

FUNCTION PARAMETERS

the properties to query.

RETURN VALUE

Returns the number of property items available.

THREAD SAFETY

It is safe to call this function from any thread.

AVAILABILITY

This function is available since SDL 3.6.0.

SDL 3.5.0 Simple Directmedia Layer