Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site whuxl.UUCP Path: utzoo!watmath!clyde!burl!mgnetp!ihnp4!houxm!whuxl!mike From: mike@whuxl.UUCP (BALDWIN) Newsgroups: net.sources Subject: Re: Thompsons self duplicating program Message-ID: <189@whuxl.UUCP> Date: Thu, 23-Aug-84 14:36:47 EDT Article-I.D.: whuxl.189 Posted: Thu Aug 23 14:36:47 1984 Date-Received: Fri, 24-Aug-84 05:02:15 EDT Organization: Bell Labs, Whippany, N.J. Lines: 15 Larry's (cbscc!lvc) version can be made two characters shorter by removing the spaces: main(){char*a="main(){char*a=%c%s%c;printf(a,34,a,34);}";printf(a,34,a,34);} which is really the same thing as a 76-character version I posted not long ago: char*a="char*a=%c%s%c;main(){printf(a,34,a,34);}";main(){printf(a,34,a,34);} Now if you're using a V6 C compiler, you can remove the two equal signs as well! This has >got< to be the shortest one! Michael Baldwin harpo!whuxl!mike