C Programming

SYSTEM CALLS
Calls may be made to the Operating System to execute standard OPsys calls, eg,


	#include <process.h>
	main()  /* SYS.C    */
	{
		char *command = "dir";

		system( "cls" );
		system( command );
	}

Do not use this method to invoke other programs. Functions like exec() and spawn() are used for this.


ęCopyright B Brown. 1984-1999. All rights reserved.