Idris2/support/c/idris_system.c
Stiopa Koltsov a6555549ee Route System.prim__system through C function
To be able to eventually refactor/extend `system` function: to be
able to specify a directory, environment variables, specify arguments
as array etc. Ideally it should be something like Rust
[`std::process::Command`](https://doc.rust-lang.org/std/process/struct.Command.html).
2021-06-28 11:28:14 +01:00

7 lines
118 B
C

#include <stdlib.h>
#include "idris_system.h"
int idris2_system(const char* command) {
return system(command);
}