C Library Functions: Searching and Sorting

Function Header File Description
bsearch stdlib.h
search.h
Performs a binary search of a sorted array.
lfind search.h Performs a linear search for a value in an array. If the value is not found, a result of NULL will be displayed.
lsearch search.h Performs a linear search for a value in an array. If the value does not exist, it will be added to the array.
qsort stdlib.h
search.h
Performs a quick sort on an array of elements.


Alphabetical Listing of IBM C and C++ Compilers Functions and Macros