
    Here's a short, fairly fast, fairly portable version of look.  The
    undocumented (at least here) -ttabchar option is not implemented,
    only because I'm not positive what it does.  If someone with access
    to source can describe its function, I'll add it.  I'm also interested
    to know how this compares speedwise to the original.

    Usage: look [-df] string [file]
    file is assumed to be sorted.
    The d and f options behave as in sort(1).
    If -d is given, only letters, digits, tabs and blanks are compared.
    If -f is given, uppercase letters are folded to lowercase - i.e.,
    the search is case insensitive.
    If no file is specified, -df and /usr/dict/words are assumed.
    Return status: 0 if search was successful, 1 if not, and 2 on error.

    To build, just cc -O look.c -o look. 
    tolower() is assumed to do the right thing with non-alpha characters.
    Bug reports/comments welcome.

    Roger Cornelius
    --
    Roger A. Cornelius          rac@sherpa.UUCP         uunet!sherpa!rac
