lvc@cbscc.UUCP (Larry Cipriani) (08/22/84)
The following is a modified version of a self duplicating program sent to me by Berry Kercheval. It must be run once to squeeze the terminating new line out, then all copies genererated will be identical. main(){char q=34,*a="main(){char q=34,*a=%c%s%c;printf(a,q,a,q);}";printf(a,q,a,q);} Larry Cipriani cbscc!lvc
trt@rti-sel.UUCP (08/31/84)
Ah! Then here is a 76 character self duplicator. It has the ugly feature that there is no trailing newline, but the nice feature that it fits on one line on a standard crt screen. (The following must be run once to eliminate white space, then it will reproduce itself.) main(){char*a="main(){char*a=%c%s%c;printf(a,34,a,34);}";printf(a,34,a,34);} Tom Truscott