sdlGetDayOfWeek function
Get the day of week for a calendar date.
\param year the year component of the date. \param month the month component of the date. \param day the day component of the date. \returns a value between 0 and 6 (0 being Sunday) if the date is valid 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_GetDayOfWeek(int year, int month, int day)
Implementation
int sdlGetDayOfWeek(int year, int month, int day) {
final sdlGetDayOfWeekLookupFunction = libSdl3.lookupFunction<
Int32 Function(Int32 year, Int32 month, Int32 day),
int Function(int year, int month, int day)>('SDL_GetDayOfWeek');
return sdlGetDayOfWeekLookupFunction(year, month, day);
}