SDL_GetDaysInMonth - Get the number of days in a month for a given year.
Contents
Availability
This function is available since SDL 3.2.0.
Simple Directmedia Layer SDL 3.2.10 SDL_GetDaysInMonth(3)
Function Parameters
year the year.
month the month [1-12].
Header File
Defined in SDL3/SDL_time.h
Name
SDL_GetDaysInMonth - Get the number of days in a month for a given year.
Return Value
Returns the number of days in the requested month or -1 on failure; call SDL_GetError () for more
information.
Synopsis
#include"SDL3/SDL.h"intSDL_GetDaysInMonth(intyear,intmonth);
