Annotation of 43BSD/usr.lib/libpc/NIL.c, revision 1.1.1.1

1.1       root        1: /* Copyright (c) 1979 Regents of the University of California */
                      2: 
                      3: static char sccsid[] = "@(#)NIL.c 1.3 11/12/82";
                      4: 
                      5: #include "h00vars.h"
                      6: 
                      7: char ENIL[] = "Pointer value out of legal range\n";
                      8: 
                      9: char *
                     10: NIL(ptr)
                     11:        char    *ptr;           /* pointer to struct */
                     12: {
                     13:        if (ptr > _maxptr || ptr < _minptr) {
                     14:                ERROR(ENIL, 0);
                     15:                return;
                     16:        }
                     17:        return ptr;
                     18: }

unix.superglobalmegacorp.com

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