This documentation is archived and is not being maintained.

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