Annotation of 41BSD/lib/libpc/MAX.c, revision 1.1.1.1

1.1       root        1: /* Copyright (c) 1979 Regents of the University of California */
                      2: 
                      3: static char sccsid[] = "@(#)MAX.c 1.1 10/29/80";
                      4: 
                      5: #include "h00vars.h"
                      6: #include "h01errs.h"
                      7: 
                      8: MAX(width, reduce, min)
                      9: 
                     10:        register int    width;          /* requested width */
                     11:        int             reduce;         /* amount of extra space required */
                     12:        int             min;            /* minimum amount of space needed */
                     13: {
                     14:        if (width < 0) {
                     15:                ERROR(EFMTSIZE, width);
                     16:                return;
                     17:        }
                     18:        if ((width -= reduce) >= min)
                     19:                return width;
                     20:        return min;
                     21: }

unix.superglobalmegacorp.com

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