sdlGetDaysInMonth function time

int sdlGetDaysInMonth(
  1. int year,
  2. int month
)

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.2.0.

extern SDL_DECLSPEC int SDLCALL SDL_GetDaysInMonth(int year, int month)

Implementation

int sdlGetDaysInMonth(int year, int month) {
  final sdlGetDaysInMonthLookupFunction = _libSdl
      .lookupFunction<
        Int32 Function(Int32 year, Int32 month),
        int Function(int year, int month)
      >('SDL_GetDaysInMonth');
  return sdlGetDaysInMonthLookupFunction(year, month);
}