Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rlgvax.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!trwatf!rlgvax!dave From: dave@rlgvax.UUCP (Dave Maxey) Newsgroups: net.jokes Subject: Re: Humor ala Kernighan Message-ID: <700@rlgvax.UUCP> Date: Thu, 18-Jul-85 11:12:35 EDT Article-I.D.: rlgvax.700 Posted: Thu Jul 18 11:12:35 1985 Date-Received: Sat, 20-Jul-85 14:37:51 EDT References: <714@vax2.fluke.UUCP> <243@ttrdc.UUCP> <4573@mit-eddie.UUCP> <894@loral.UUCP> <601@cybvax0.UUCP> <2123@pucc-h> Organization: CCI Office Systems Group, Reston, VA Lines: 53 > In Kernighan & Ritchie's book on C, a component in one of their examples of a > "struct" caused me to say "Don't I wish!": > > double salary; > > -- > -- Jeff Sargent > {decvax|harpo|ihnp4|inuxc|ucbvax}!pur-ee!pucc-h!aeq > If you don't bet your life on at least one wild-looking chance before you die, > then you won't have really lived.... In response: I dug this program up out of my /tires directory. Some day I intend to write the include file so that it will compile and do something interesting when it runs. /* * funcode - isn't Unix fun? */ #include "fundefs.h" #define SIMPLE 1024 #define of 0 double trademark[SIMPLE]; double *Unix = Multics; long time, no_see; typedef char to, kiss_me; main(augghc, augghv) char **augghv; { register to vote; int we_got_fun; footnote(); *Unix += (double)((double)toil & trouble); if (problem) direction = (whoknows *)answer; write(a, letter, home); } footnote() { double laboratories = 2; *Unix = trademark[of] + '\07' + laboratories; } /* * - Dave Maxey (alias tbm) * {seismo,mcnc,brl-bmd,allegra}!rlgvax!dave */