#
[Note 1: 
The header <cstdlib> declares the functions described in this subclause.
— end note]
void* bsearch(const void* key, void* base, size_t nmemb, size_t size, c-compare-pred* compar); void* bsearch(const void* key, void* base, size_t nmemb, size_t size, compare-pred* compar); const void* bsearch(const void* key, const void* base, size_t nmemb, size_t size, c-compare-pred* compar); const void* bsearch(const void* key, const void* base, size_t nmemb, size_t size, compare-pred* compar); void qsort(void* base, size_t nmemb, size_t size, c-compare-pred* compar); void qsort(void* base, size_t nmemb, size_t size, compare-pred* compar);
Preconditions: For qsort, the objects in the array pointed to by base are of trivially copyable type.
Throws: Any exception thrown by compar ([res.on.exception.handling]).
See also: ISO/IEC 9899:2024, 7.24.6

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant