sdlGetDaysInMonth function
Get the number of days in a month for a given year.
\param year the year.
\param month the month 1-12
.
\returns the number of days in the requested month or -1 on failure; call
SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC int SDLCALL SDL_GetDaysInMonth(int year, int month)
Implementation
int sdlGetDaysInMonth(int year, int month) {
final sdlGetDaysInMonthLookupFunction = libSdl3.lookupFunction<
Int32 Function(Int32 year, Int32 month),
int Function(int year, int month)>('SDL_GetDaysInMonth');
return sdlGetDaysInMonthLookupFunction(year, month);
}