OK, now I think there might be a code error.. here is the output of the code...and then the code itself.. I am not sure what is going on.. it seems to me it should work.
ok heres the output to the console.. btw this is unix.
new-host:C programs Alex$ ./a.out
This program can open applications or delete files
Please select what you like to do
enter 'Delete' to delete files, or 'open' to open
Type in the name of the app
Unable to find application named '
new-host:C programs Alex$
ok and code
PLEASE HELP :0
if(toupper(choice) == 'O')
printf("Type in the name of the app\n");
fgets(applic, 15, stdin);
sprintf(applic2, "\"%s\"", applic);
sprintf(empty1, "open -a %s", applic2);
sprintf(empty2, "%s.app", empty1);
oh and btw w/o the fflush(stdin); it does the same thing