Annotation of researchv10no/cmd/asd/chk.c, revision 1.1.1.1

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

unix.superglobalmegacorp.com

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