Annotation of researchv10no/libc/gen/calloc.c, revision 1.1.1.1

1.1       root        1: char *
                      2: calloc(num, size)
                      3:        unsigned num, size;
                      4: {
                      5:        register char *mp;
                      6:        char *malloc();
                      7: 
                      8:        num *= size;
                      9:        if(mp = malloc(num))
                     10:                memset(mp, 0, num);
                     11:        return(mp);
                     12: }
                     13: 
                     14: cfree(p, num, size)
                     15: char *p;
                     16: unsigned num, size;
                     17: {
                     18:        free(p);
                     19: }

unix.superglobalmegacorp.com

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