Share this page

# 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.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: