Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Searching and Sorting

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

Show:
© 2015 Microsoft