Namespaces
Variants

cpp/utility/program/system: Difference between revisions

From cppreference.com
P12bot (talk | contribs)
m Text replace - "{{example}}" to "===Example==="
P12bot (talk | contribs)
m Text replace - "{{params}}" to "===Parameters==="
Line 10: Line 10:


<!-- ======== -->
<!-- ======== -->
{{params}}
{{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.

Example

Template:example cpp