Annotation of 42BSD/usr.bin/refer/inv3.c, revision 1.1.1.1

1.1       root        1: #ifndef lint
                      2: static char *sccsid = "@(#)inv3.c      4.1 (Berkeley) 5/6/83";
                      3: #endif
                      4: 
                      5: getargs(s, arps)
                      6: char *s, *arps[];
                      7: {
                      8:        int i = 0;
                      9: 
                     10:        while (1)
                     11:        {
                     12:                arps[i++] = s;
                     13:                while (*s != 0 && *s!=' '&& *s != '\t')
                     14:                        s++;
                     15:                if (*s == 0)
                     16:                        break;
                     17:                *s++ = 0;
                     18:                while (*s==' ' || *s=='\t')
                     19:                        s++;
                     20:                if (*s==0)
                     21:                        break;
                     22:        }
                     23:        return(i);
                     24: }

unix.superglobalmegacorp.com

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