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_GetDaysInMonth - Get the number of days in a month for a given year.

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);

See Also