Annotation of coherent/g/usr/lib/misc/alloc.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Get space or die.
        !             3:  */
        !             4: #include <stdio.h>
        !             5: char *memset();
        !             6: 
        !             7: char *
        !             8: alloc(n)
        !             9: unsigned n;
        !            10: {
        !            11:        char    *tmp;
        !            12: 
        !            13:        if (NULL == (tmp = malloc(n)))
        !            14:                fatal("Out of space");
        !            15:        return (memset(tmp, '\0', n));
        !            16: }

unix.superglobalmegacorp.com

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