|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 986 (0x3da) Types: TextFile Notes: R1k Text-file segment
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦2f72efc76⟧ └─⟦this⟧
#ifndef lint static char What[]="@(#) bla bla bla ..."; #endif #include <stdio.h> #define PROMPT printf("N? ");fflush(stdout); #define SCAN(value) scanf("%d",&value) #define HELLO_OUT "stdout: Bonjour R1000, comment vas tu aujourd'hui?\n" #define HELLO_ERR "stderr: Bonjour R1000, comment vas tu aujourd'hui?\n" static int get_value () { int n; PROMPT; SCAN(n); return n; } main() { /* */ /* THIS IS A LINE */ int i,n; printf("BEGIN\n"); for(n=get_value();n>0;n=get_value()) { /* this is a comment */ for (i=0;i<n;i++) { printf("%d:%s",i,HELLO_OUT); fflush(stdout); fprintf(stderr,"%d:%s",i,HELLO_ERR); fflush(stderr); } } printf("END\n"); exit(0); }