Requests for nominations of Great C Code (Was Re: Texts ...
Don Libes
libes at cme.nbs.gov
Tue Apr 4 03:39:05 AEST 1989
>>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 at cme.nbs.gov ...!uunet!cme-durer!libes
More information about the Comp.lang.c
mailing list