# Algorithms

> C++ Atlas: `cppatlas.com/w/c/algorithm` | Source: https://en.cppreference.com/w/c/algorithm | Domain: Algorithms | Standards: C11

## Official Specification Summary (cppreference)

Defined in header `<stdlib.h>`

- `qsort`, `qsort_s` (C11): sorts a range of elements with unspecified type (function)
- `bsearch`, `bsearch_s` (C11): searches an array for an element of unspecified type (function)

### References

- C11 standard (ISO/IEC 9899:2011):

  - 7.22.5 Searching and sorting utilities (p: 354-356)

  - K.3.6.3 Searching and sorting utilities (p: 607-609)

- C99 standard (ISO/IEC 9899:1999):

  - 7.20.5 Searching and sorting utilities (p: 318-319)

- C89/C90 standard (ISO/IEC 9899:1990):

  - 4.10.5 Searching and sorting utilities

### See also

- [C++ documentation for Algorithms library](https://en.cppreference.com/w/cpp/algorithm)

---
Attribution: content from https://en.cppreference.com/w/c/algorithm (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.