cpp/utility/program/system: Difference between revisions
From cppreference.com
m Text replace - "{{returns}}" to "===Return value===" |
m Text replace - "<!-- ======== --> " to "" |
||
| Line 9: | Line 9: | ||
If command is {{cpp|NULL}} pointer, checks if host environment has a command processor and returns nonzero value only if it the command processor exists. | If command is {{cpp|NULL}} pointer, checks if host environment has a command processor and returns nonzero value only if it the command processor exists. | ||
===Parameters=== | ===Parameters=== | ||
{{param list begin}} | {{param list begin}} | ||
| Line 15: | Line 14: | ||
{{param list end}} | {{param list end}} | ||
===Return value=== | ===Return value=== | ||
implementation-defined value. If {{tt|command}} is {{cpp|NULL}} returns nonzero value only if command processor exists. | implementation-defined value. If {{tt|command}} is {{cpp|NULL}} returns nonzero value only if command processor exists. | ||
===Example=== | ===Example=== | ||
{{example cpp | {{example cpp | ||
Revision as of 02:20, 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 |
Return value
implementation-defined value. If command is Template:cpp returns nonzero value only if command processor exists.