Created
October 13, 2010 15:35
-
-
Save runemadsen/624284 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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