title: C: signal function (parameters?)
body: <p>I have the following c code:</p>
  
  <pre><code>void handler(int n) {
      printf("n value: %i\n");
  }
  
  int main() {
      signal(SIGTSTP, handler);   // ^Z at keyboard
      for(int n = 0; ; n++) {
      }   
  }
  </code></pre>
  
  <p>I am curious what the n parameter is in the handler function.  When you press <code>^Z</code> it usually prints either: <code>8320</code>, <code>-1877932264</code> or <code>-1073743664</code>.  What are these numbers?  </p>
  
  <hr>
  
  <p><strong>Edit:</strong>  Ops I wrote my printf wrong.  I corrected it to be:</p>
  
  <pre><code>void handler(int n) {
      printf("n value: %i\n",n);
  }
  </code></pre>
  
  <p>Now the value of n is always: 18.  What is this 18?  </p>