Annotation of researchv10no/cmd/odist/opkg/chk.c, revision 1.1.1.1

1.1       root        1: #include "asd.h"
                      2: #include <stdio.h>
                      3: 
                      4: /*
                      5:  *     little subroutines to check return codes
                      6:  */
                      7: 
                      8: void
                      9: nchk (int n)
                     10: {
                     11:        if (n < 0) {
                     12:                fprintf (stderr, "unexpected error return -- help!\n");
                     13:                exit (1);
                     14:        }
                     15: }
                     16: 
                     17: void
                     18: schk (void *s)
                     19: {
                     20:        if (s == NULL) {
                     21:                fprintf (stderr, "unexpected error return -- help!\n");
                     22:                exit (1);
                     23:        }
                     24: }

unix.superglobalmegacorp.com

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