Annotation of xinu/sys/TEST/test.c.mem, revision 1.1.1.1

1.1       root        1: /* test.c - main */
                      2: #include <conf.h>
                      3: 
                      4: main ()
                      5: {
                      6:        int     *a,*b,*c,*d,*e,*f;
                      7: 
                      8:        mdump();
                      9:        kprintf("a=getmem(10) is 0%o\n", a=getmem(10));
                     10:        mdump();
                     11:        kprintf("b=getmem(20) is 0%o\n", b=getmem(20));
                     12:        mdump();
                     13:        kprintf("freemem(a,10) is %d\n", freemem(a,10));
                     14:        mdump();
                     15:        kprintf("c=getmem(20) is 0%o\n", c=getmem(20));
                     16:        mdump();
                     17:        kprintf("d=getmem(10) is 0%o\n", d=getmem(10));
                     18:        mdump();
                     19:        kprintf("freemem(b,20) is %d\n", freemem(b,20));
                     20:        mdump();
                     21:        kprintf("freemem(c,20) is %d\n", freemem(c,20));
                     22:        mdump();
                     23:        kprintf("freemem(d,10) is %d\n", freemem(d,10));
                     24:        mdump();
                     25: }

unix.superglobalmegacorp.com

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