Annotation of researchv10no/cmd/worm/c.c, revision 1.1.1.1

1.1       root        1: #include       <sys/param.h>
                      2: main(argc, argv)
                      3:        char **argv;
                      4: {
                      5:        Long off;
                      6:        long a, b;
                      7: 
                      8:        a = atoi(argv[1]);
                      9:        b = atoi(argv[2]);
                     10:        off = Llmul(ltoL(a), b);
                     11:        print("%d(#%x) x %d(#%x) = #%ux%0.8ux(%.0f)\n", a, a, b, b, off.hi, off.lo,
                     12:                ((float)off.lo) + 65536.0*65536.0*off.hi);
                     13:        if(llseek(open("/dev/null", 0), off, 0) < 0)
                     14:                perror("seek");
                     15: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.