2 * This file lifted in toto from 'Dlibs' on the atari ST (RdeBath)
5 * Dale Schumacher 399 Beacon Ave.
6 * (alias: Dalnefre') St. Paul, MN 55104
7 * dal@syntel.UUCP United States of America
8 * "It's not reality that's important, but how you perceive things."
14 lfind(key
, base
, num
, size
, cmp
)
15 register char *key
, *base
;
17 register unsigned int size
;
18 register int (*cmp
) ();
20 register int n
= *num
;
24 if ((*cmp
) (base
, key
) == 0)
32 lsearch(key
, base
, num
, size
, cmp
)
34 register unsigned int *num
;
35 register unsigned int size
;
41 if ((p
= lfind(key
, base
, num
, size
, cmp
)) == NULL
)
43 p
= memcpy((base
+ (size
* (*num
))), key
, size
);