Annotation of researchv10no/cmd/spitbol/dosys.c, revision 1.1.1.1

1.1       root        1: /*
                      2:        dosys does a "system" function call with the string in
                      3:        in the passed scblk.
                      4: */
                      5: 
                      6: #include "spitblks.h"
                      7: 
                      8: dosys( scbptr )
                      9: 
                     10: struct scblk   *scbptr;
                     11: 
                     12: {
                     13:        int     l,savchr;
                     14:        char    *cp;
                     15: 
                     16:        l       = scbptr -> len;
                     17:        cp      = scbptr->str;
                     18: 
                     19:        savchr  = cp[l];
                     20:        cp[l]   = 0;
                     21:        system( cp );
                     22:        cp[l]   = savchr;
                     23: }

unix.superglobalmegacorp.com

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