C++ Programming/Code/Standard C Library/Functions/system
< C++ Programming < Code < Standard C Library < Functionssystem
Syntax |
#include <cstdlib>
int system( const char *command );
|
The system() function runs the given command by passing it to the default command interpreter.
The return value is usually zero if the command executed without errors. If command is NULL, system() will test to see if there is a command interpreter available. Non-zero will be returned if there is a command interpreter available, zero if not.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.