Searching and Sorting
Use the following functions for searching and sorting.
Searching and Sorting Functions
Function |
Search or Sort |
.NET Framework equivalent |
---|---|---|
Binary search |
||
A more secure version of bsearch. |
||
Linear search for given value |
||
A more secure version of _lfind |
||
Linear search for given value, which is added to array if not found |
Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples. |
|
A more secure version of _lsearch |
Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples. |
|
Quick sort |
||
A more secure version of qsort |