Uredi

Deli z drugimi prek


Searching and sorting

Use the following functions for searching and sorting.

Searching and sorting functions

Function Search or Sort
bsearch Binary search
bsearch_s A more secure version of bsearch
_lfind Linear search for given value
_lfind_s A more secure version of _lfind
_lsearch Linear search for given value, which is added to array if not found
_lsearch_s A more secure version of _lsearch
qsort Quick sort
qsort_s A more secure version of qsort

See also

Universal C runtime routines by category