DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦2a808251e⟧ TextFile

    Length: 940 (0x3ac)
    Types: TextFile
    Notes: R1k Text-file segment

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦01bf2603c⟧ 
            └─⟦this⟧ 

TextFile

#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() { /*  */
        int i,n;                        
        printf("BEGIN\n");
        for(n=get_value();n>0;n=get_value()) {
                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);