Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!cme!libes From: libes@cme.nbs.gov (Don Libes) Newsgroups: comp.lang.c Subject: Re: Requests for nominations of Great C Code (Was Re: Texts ... Keywords: Great C Code Message-ID: <1115@muffin.cme.nbs.gov> Date: 3 Apr 89 17:39:05 GMT References: <354@cbnewsc.ATT.COM> <433@algor2.UUCP> <942@atanasoff.cs.iastate.edu> Reply-To: libes@cme.nbs.gov (Don Libes) Organization: National Institute of Standards and Technology Lines: 64 >>I am very interested in the answers others have to the following: What ts >>the best C code you have ever read? > > I'd like to cast a negative vote for > the 4.2 BSD Un*x source, wholly unreadable. :-) I'd like to cast both positive and negative votes for Gosling's emacs. And who could forget display.c? I have reproduced the beginning of it here for your amusement. /********************************************************\ * * * Ultra-hot screen management package * * * \********************************************************/ /**************************************************************** /-------------\ / \ / \ / \ | XXXX XXXX | | XXXX XXXX | | XXX XXX | \ X / --\ XXX /-- | | XXX | | | | | | | I I I I I I I | | I I I I I I | \ / -- -- \-------/ XXX XXX XXXXX XXXXX XXXXXXXXX XXXXXXXXXX XXXXX XXXXX XXXXXXX XXXXX XXXXX XXXXXXXXX XXXXXXXXXX XXXXX XXXXX XXX XXX ************** * BEWARE!! * ************** All ye who enter here: Most of the code in this module is twisted beyond belief! Tread carefully. If you think you understand it, You Don't, So Look Again. ****************************************************************/ Needless to say, the comment was not an exageration. Don Libes libes@cme.nbs.gov ...!uunet!cme-durer!libes