title: return value of system() in C
body: <p>I am using the <code>system()</code> command in C to execute commands like <code>sc query mysql</code> or <code>net start mysql</code>.</p>
  
  <p>If the parameter is null pointer then it returns 1 if the cmd processor is OK, otherwise it returns 0. On successful command execution it returns 0.</p>
  
  <p>My question is: Can I get a list of its return values? Like what it will return if the command is invalid or what the return value on unsuccessful execution will be? I want to do different things depending on the return value of <code>system()</code>.</p>