##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# Algorithms

From cppreference.com
< c

Defined in header `<stdlib.h>`
qsort qsort_s (C11) | sorts a range of elements with unspecified type (function) [edit]
bsearch bsearch_s (C11) | searches an array for an element of unspecified type (function) [edit]

### [edit] 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

### [edit] See also

C++ documentation for Algorithms library

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