/* system example : DIR */
#include <stdio.h>
#include <stdlib.h>
int main ()
{
int i;
printf ("Checking if processor is available...");
if (system(NULL)) puts ("Ok");
else exit (1);
printf ("Executing Calc...\n");
i = system ("c:/windows/system32/calc.exe");
printf ("The value returned was: %d.\n",i);
getchar();
return 0;
}