|
|
DataMuseum.dkPresents historical artifacts from the history of: Commodore CBM-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Commodore CBM-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 286 (0x11e)
Types: TextFile
Notes: UNIX file
Names: »getit.c«
└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
└─⟦926b8033d⟧ UNIX Filesystem
└─⟦this⟧ »u/demo/slide/getit.c«
#include <stdio.h>
#include <signal.h>
char *p,*p2;
main() {
int intr();
if(signal(SIGINT, SIG_IGN) != SIG_IGN)
signal(SIGINT, intr);
if((p = malloc((unsigned int)60000L)) == NULL) exit();
p2 = p;
while(1) *p++ = getchar();
}
intr()
{
while (p2 != p) putchar(*p2++);
exit();
}