NAME
long_linear_search - Finds an element in an array with long integer key
SYNOPSIS
#include "l/l_sort.h"
Example compile flags (system dependent):
-DLINUX_386 -DLINUX_386_P4
-I/home/kobus/include
-L/home/kobus/load/linux_386_p4 -L/usr/local/lib -L/usr/lib
-lKJB -llapack -lblas -lg2c -lXext -lX11
long long_linear_search
(
const void *array,
long num_elements,
size_t element_size,
size_t element_offset,
long search_key
);
DESCRIPTION
This routine finds an element in the array "array" with a linear search
assuming that the key is a longinteger. The array need not be sorted.
RETURNS
On success, this routine returns an index into the array. If the element
is not found, then it returns NOT_FOUND.
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTOR
Kobus Barnard
SEE ALSO
kjb_sort
,
int_sort
,
long_sort
,
binary_search
,
int_binary_search
,
long_binary_search
,
binary_search_int_array
,
binary_search_long_array
,
linear_search
,
int_linear_search
,
linear_search_int_array
,
linear_search_long_array