system function


The system function is used to issue a command. Execution of your program will not continue until the command has completed.

Library: stdlib.h
Prototype: int system(const char *cmd);
Syntax: system( "cat /etc/hosts");
Notes:
	 In Unix systems, the command is passed to "/bin/sh -c" for 
 execution. I do not know what handles the command in DOS systems.
 
example program.


See Also:



Martin Leslie

AltStyle によって変換されたページ (->オリジナル) /