cpp/utility/program/system: Difference between revisions
From cppreference.com
m Text replace - "{{example}}" to "===Example===" |
m Text replace - "{{params}}" to "===Parameters===" |
||
| Line 10: | Line 10: | ||
<!-- ======== --> | <!-- ======== --> | ||
{{param list begin}} | {{param list begin}} | ||
{{param list item | command | character string identifying the command to be run in the command processor. If NULL pointer is given, command processor is checked for existence}} | {{param list item | command | character string identifying the command to be run in the command processor. If NULL pointer is given, command processor is checked for existence}} | ||
Revision as of 01:41, 3 August 2011
Template:cpp/utility/program/sidebar
| Defined in header <cstdlib>
|
||
int system( const char *command );
|
||
Calls the host environment's command processor with command parameter. Returns implementation-defined value (usually the value that the invoked program returns).
If command is Template:cpp pointer, checks if host environment has a command processor and returns nonzero value only if it the command processor exists.
Parameters
| command | - | character string identifying the command to be run in the command processor. If NULL pointer is given, command processor is checked for existence |
Template:returns
implementation-defined value. If command is Template:cpp returns nonzero value only if command processor exists.