🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5831

Re: Portable Self-Replicating C Contest

#5831
From: Bob Hearn
Date: Mon, 27 Mar 1989 21:45
18 lines
1188 bytes
Oops... sorry.  Stupid mailer sent the wrong file.  One more time...

> Isn't it impossible for a C program to replicate itself if it doesn't access
> the operating system (other than printing to stdout)?  The question of whether
> it can be done while *using* the OS should come out of this contest so I'll
> wait patiently...
> 
> By the way, please forgive me if this all seems trivially true/false...but
> please enlighten me.

No, it's not impossible... the basic idea is to write a program that means
the equivalent of:

Write the following quotation, then write it again, quoted: "Write the 
following quotation, then write it again, quoted:"

Bob Hearn
hearn@claris.com
Technical Details
Message-ID: <9201@claris.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!claris!hearn
References: <2179@fireball.cs.vu.nl> <2976@goofy.megatest.UUCP> <12144@haddock.ima.isc.com> <1417@sw1e.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!claris!hearn
From: hearn@claris.com (Bob Hearn)
Newsgroups: comp.std.c
Subject: Re: Portable Self-Replicating C Contest
Message-ID: <9201@claris.com>
Date: 27 Mar 89 21:45:38 GMT
References: <2179@fireball.cs.vu.nl> <2976@goofy.megatest.UUCP> <12144@haddock.ima.isc.com> <1417@sw1e.UUCP>
Reply-To: hearn@claris.com (Bob Hearn)
Organization: Claris Corporation, Mountain View CA
Lines: 18