I know using "system" in c++ is not the best way to develop, however, I need to use it for some specific reason.
I have read that it is advisable using before system(NULL) to check if there is a shell available.
My question are:
When is not going to be available a shell?
Is that check really needed or removing it will not cause further problems?
The code would be as follows:
if ( system(NULL) != 0) system(myprog);
Any help would be apreciated,