Portable Self-Replicating C Contest
Bob Hearn
hearn at claris.com
Tue Mar 28 07:45:38 AEST 1989
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 at claris.com
More information about the Comp.std.c
mailing list