Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site boulder.UUCP
Path: utzoo!linus!philabs!cmcl2!seismo!hao!cires!boulder!chris
From: chris@boulder.UUCP (Chris Sterritt)
Newsgroups: net.sources
Subject: Self Replication
Message-ID: <198@boulder.UUCP>
Date: Mon, 20-Aug-84 09:21:35 EDT
Article-I.D.: boulder.198
Posted: Mon Aug 20 09:21:35 1984
Date-Received: Wed, 22-Aug-84 03:12:41 EDT
Organization: University of Colorado, Boulder
Lines: 25

<"Yields netnews when proceeded by its quotation"
 Yields netnews when proceeded by its quotation.>

Friends of self replication,

	Someone (I've forgotten whom) posted a shorter C
self-replicating program and mentioned it came from BYTE Magazine...
does anyone know which issue?  Anyway, here is a shorter version:
Please Note: this must be just one line in the file, but I've split it
to make it news-compatible (I don't KNOW that netnews programs require
a line to be under 80 columns... but better safe than sorry!).

	Viz:
main(){int q=34,r=10;char *a="main(){int q=34,r=10;char *a=%c%s%c;
printf(a,q,a,q,r);}%c";printf(a,q,a,q,r);}

	Reading it into this note says that it is 109 chars. Enjoy!


	Chris Sterritt
	"Help make the world safe for musical comedy!"

{ucbvax!hplabs | allegra!nbires | decvax!kpno | harpo!seismo | ihnp4!kpno}
			!hao!boulder!chris