Searching and Sorting
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Searching and Sorting

Use the following functions for searching and sorting.

Searching and Sorting Functions

Function Search or Sort
bsearch Binary search
_lfind Linear search for given value
_lsearch Linear search for given value, which is added to array if not found
qsort Quick sort

See Also

Run-Time Routines by Category | Run-Time Routines and .NET Framework Equivalents

© 2015 Microsoft