title: what is the return value of system command when used in c
body: <p>I am using linux system command to kill some processes in c file. I just want to know the different return values that are possible. I dont get clear idea when i searched the net. the following command i am using in c.</p>
  
  <pre><code>ret = system("pkill raj");
  </code></pre>
  
  <ul>
  <li>suppose that if there are no processes running with raj what will be the return value?</li>
  <li>suppose that if the command pkill raj is failed what will be the return value?</li>
  <li>suppose there are some process that are with name raj. after executing this what will be the return value.</li>
  </ul>