# Algorithms

From cppreference.com
< c

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

Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/algorithm&oldid=94078"