Skip to content

Instantly share code, notes, and snippets.

@runemadsen
Created October 13, 2010 15:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runemadsen/624284 to your computer and use it in GitHub Desktop.
Save runemadsen/624284 to your computer and use it in GitHub Desktop.
int i;
printf ("Checking if processor is available...");
if (system(NULL))
puts ("Ok");
else
puts ("Not Ok");
printf ("Executing command Open...\n");
i = system("open .");
printf ("The value returned was: %d.\n",i);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment