Namespaces
Variants

cpp/utility/program/system: Difference between revisions

From cppreference.com
Created page with "{{cpp/title| system}} {{cpp/utility/program/sidebar}} {{ddcl | header=cstdlib | int system( const char *command ); }} Calls the host environment's command processor with command..."
 
P12bot (talk | contribs)
m Text replace - "{{example}}" to "===Example==="
Line 20: Line 20:


<!-- ======== -->
<!-- ======== -->
{{example}}
{{example cpp
{{example cpp
  |
  |

Revision as of 23:15, 2 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.

Template:params

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