MCPcopy Create free account
hub / github.com/Singular/Singular / System

Function System

ppcc/adlib/os.cc:143–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143int 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
151void Print(Str *str) {
152 printf("%s", str->c_str());

Callers 2

MainFunction · 0.85
PassThroughCompilerFunction · 0.85

Calls 2

BuildCommandFunction · 0.85
c_strMethod · 0.80

Tested by 1

MainFunction · 0.68