title: Kill command in c-programming
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4134848/unable-to-understand-the-kill-program-of-linux">Unable to understand the &ldquo;Kill&rdquo; program of linux</a>  </p>
  </blockquote>
  
  
  
  <p>Hi All,
  Can anyone explain me how this program works.
  Please explain what each line do.</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;sys/types.h&gt;
  #include&lt;signal.h&gt;
  
  int main(int argc, char **argv)
  {
      if (argc &lt; 2)
      {
          printf("usage: ./kill PID");
          return -1;
      }
  
      kill(atoi(argv[1]), SIGKILL);
  
      return 0;
  
  }
  </code></pre>