Annotation of 42BSD/lib/libc/net/getnetbyaddr.c, revision 1.1

1.1     ! root        1: /*     getnetbyaddr.c  4.3     82/10/06        */
        !             2: 
        !             3: #include <netdb.h>
        !             4: 
        !             5: struct netent *
        !             6: getnetbyaddr(net, type)
        !             7:        register int net, type;
        !             8: {
        !             9:        register struct netent *p;
        !            10: 
        !            11:        setnetent(0);
        !            12:        while (p = getnetent())
        !            13:                if (p->n_addrtype == type && p->n_net == net)
        !            14:                        break;
        !            15:        endnetent();
        !            16:        return (p);
        !            17: }

unix.superglobalmegacorp.com

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