| 141 | } |
| 142 | |
| 143 | int System(Str *prog, StrArr *args) { |
| 144 | Str *command = BuildCommand(prog, args); |
| 145 | int result = system(command->c_str()); |
| 146 | if (result >= 256) |
| 147 | result >>= 8; |
| 148 | return result; |
| 149 | } |
| 150 | |
| 151 | void Print(Str *str) { |
| 152 | printf("%s", str->c_str()); |