Make SDL_GetTrayEntires() NULL-terminated

This commit is contained in:
Semphris
2025-01-04 13:33:19 -05:00
committed by Sam Lantinga
parent a58bc3eaf4
commit 7673b84f52
4 changed files with 15 additions and 9 deletions

View File

@@ -228,9 +228,9 @@ extern SDL_DECLSPEC SDL_TrayMenu *SDLCALL SDL_GetTraySubmenu(SDL_TrayEntry *entr
* \param menu The menu to get entries from.
* \param size An optional pointer to obtain the number of entries in the
* menu.
* \returns the entries within the given menu. The pointer becomes invalid
* when any function that inserts or deletes entries in the menu is
* called.
* \returns a NULL-terminated list of entries within the given menu. The pointer
* becomes invalid when any function that inserts or deletes entries in
* the menu is called.
*
* \since This function is available since SDL 3.2.0.
*