|
|
1.1 ! root 1: ! 2: /* ! 3: dosys does a "system" function call with the string in ! 4: in the passed scblk. ! 5: */ ! 6: ! 7: #include "spitblks.h" ! 8: ! 9: dosys( scbptr ) ! 10: ! 11: struct scblk *scbptr; ! 12: ! 13: { ! 14: int l,savchr; ! 15: char *cp; ! 16: ! 17: l = scbptr -> len; ! 18: cp = scbptr->str; ! 19: ! 20: savchr = cp[l]; ! 21: cp[l] = 0; ! 22: system( cp ); ! 23: cp[l] = savchr; ! 24: } ! 25:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.