The manual page "man system" contains the following section:
- If command is NULL, then a nonzero value if a shell is available, or 0 if no shell is available.
which basically indicates that I can check with
if(system(NULL) != 0) {foo;} if a shell is currently available or not.
When do I have to consider to do so? Because I never ever got an error which was related to this specific case.