Title: bsearchstr Version: 1.0 Submitted: Dec 1 1986 Author: hplabs!hpfcla!ajs Submittor: hplabs!hpfcla!ajs Description: Binary search for strings in a file [ I compiled and tested this on a 4.2BSD Vax750 and had no problems. The README is right -- just do a "vanilla cc"; add -DDEBUG to get a test stub with main. --r$ ] Information on bsearchstr(3): 1. This library routine is like bsearch(3), but generalized to work with files (not memory images) of random length strings (not fixed length objects). 2. Unlike bsearch(), it is well-behaved. If more than one data item (text line) matches the pattern, it returns the first matching item, not a random one. 3. It's been around a while, well tested, and shown itself to be generally useful, mainly for lookups into large, sorted lists. 4. It runs on HP-UX (AT&T V.2); hasn't been tested on other variants. 5. No makefile provided or needed -- compilation and linking are vanilla. 6. No warranty express or implied accompanies this software. Caveat emptor. See the manual entry. Alan Silverstein, Hewlett-Packard Systems Software Operation, Fort Collins, Colorado; {ihnp4 | hplabs}!hpfcla!ajs; 303-229-3053; (lat-long on request :-)