From 89e68aa8010f7bc4fe6e35512642005913d8768d Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 1 Oct 2024 10:45:32 -0700
Subject: [PATCH] Added missing return value documentation for bsearch()
---
include/SDL3/SDL_stdinc.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/SDL3/SDL_stdinc.h b/include/SDL3/SDL_stdinc.h
index 63b8d3798e334..7ce4642db5389 100644
--- a/include/SDL3/SDL_stdinc.h
+++ b/include/SDL3/SDL_stdinc.h
@@ -1306,6 +1306,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_qsort(void *base, size_t nmemb, size_t size
* \param nmemb the number of elements in the array.
* \param size the size of the elements in the array.
* \param compare a function used to compare elements in the array.
+ * \returns a pointer to the matching element in the array, or NULL if not found.
*
* \since This function is available since SDL 3.0.0.
*
@@ -1428,6 +1429,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_qsort_r(void *base, size_t nmemb, size_t si
* \param size the size of the elements in the array.
* \param compare a function used to compare elements in the array.
* \param userdata a pointer to pass to the compare function.
+ * \returns a pointer to the matching element in the array, or NULL if not found.
*
* \since This function is available since SDL 3.0.0.
*