From owner-freebsd-hardware Fri Apr 5 07:35:54 1996 Return-Path: owner-hardware Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA21095 for hardware-outgoing; Fri, 5 Apr 1996 07:35:54 -0800 (PST) Received: from lserver.infoworld.com (lserver.infoworld.com [192.216.48.4]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA21081 for ; Fri, 5 Apr 1996 07:35:48 -0800 (PST) Received: from ccgate.infoworld.com by lserver.infoworld.com with smtp (Smail3.1.29.1 #12) id m0u5DZN-000wygC; Fri, 5 Apr 96 07:37 PST Received: from cc:Mail by ccgate.infoworld.com id AA828718488; Fri, 05 Apr 96 07:18:56 PST Date: Fri, 05 Apr 96 07:18:56 PST From: "Brett Glass" Message-Id: <9603058287.AA828718488@ccgate.infoworld.com> To: Bruce Evans , msmith@atrad.adelaide.edu.au Cc: hardware@FreeBSD.ORG, jkh@time.cdrom.com Subject: Re: Some solutions to disk problems.... I think. Sender: owner-hardware@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >>I hope you are jesting! Only the most abysmal programmer would have to > >write ten functions to replace ten table entries. > You'll need the 10 entries at least in comments for checking. In that case, there will be more comments than there are in the rest of the driver! This is a good thing. > An interesting problem! :-) Given a telephone book sized list of model > numbers, write an is_in_telephone_book(char const *s) function that is > significantly smaller than the strings for the model numbers. That's very easy to do. The model numbers, unlike the telephone book, are logically arranged. --Brett