is there a c program which outputs itself?

Geoff Kuenning geoff at ITcorp.com
Sat Mar 23 09:57:45 AEST 1991


In article <1991Mar21.190907.9789 at ux1.cso.uiuc.edu> peltz at cerl.uiuc.edu (Steve Peltz) writes:

> Here's a version which doesn't use excessively cute tricks, assume that
> certain characters have fixed numeric values, or such.  In other words,
> it is an HONEST self-printing program.  It is also a self-starter, in
> that there are really two programs involved. The first one writes the
> second one, based on a shell, which is the actual self-printing
> program.

Both "makeself.c" and "selfstart.c" forgot to end with "return 0;" so that
they would return a success status to the invoker (and thus work reliably
with make).  A neat package, especially since it's so easily extensible!
-- 

	Geoff Kuenning	geoff at la.locus.com	geoff at ITcorp.com



More information about the Alt.sources.d mailing list