system
Example: system | Process Control Functions |
Executes an operating system command.
int system( const char *string);
string | The string that is passed to the resident operating system for execution. |
Return Values
If a command was successfully executed the command interpreter returns an adequate value; generally 0 indicates that the action performed by the command interpreter terminated with no errors.
A return value of -1 indicates an error, and global variable errno is set to one of the following errors:
Value | Description |
ENOENT | Command interpreter not found |
ENOEXEC | Command interpreter is not executable |
ENOMEM | Error allocating memory for the process |
E2BIG | Argument list too big |
For system details, refer to your C language documentation.