![]() | Fun 0.41.5 The programming language that makes You have fun |
Implements OP_PROC_SYSTEM to execute a shell command and return exit code. More...
Go to the source code of this file.
Functions | |
| free_value (cmdv) | |
| if (!cmd) | |
| push_value (vm, make_int(code)) | |
| free (cmd) | |
Variables | |
| case | OP_PROC_SYSTEM |
| char * | cmd = value_to_string_alloc(&cmdv) |
| int | status = system(cmd) |
| int | code = -1 |
| break | |
Implements OP_PROC_SYSTEM to execute a shell command and return exit code.
Behavior:
Errors:
Definition in file proc_system.c.
| free | ( | cmd | ) |
| free_value | ( | cmdv | ) |
| if | ( | ! | cmd | ) |
| break |
Definition at line 44 of file proc_system.c.
| char* cmd = value_to_string_alloc(&cmdv) |
Definition at line 24 of file proc_system.c.
| code = -1 |
Definition at line 31 of file proc_system.c.
| case OP_PROC_SYSTEM |
Definition at line 21 of file proc_system.c.
| int status = system(cmd) |
Definition at line 30 of file proc_system.c.