title: Set a custom function as handler to all signals
body: <p>I have this assignment to do:</p>
  
  <p>Write a function <code>void myfunct(void(*f)(int sig))</code> which sets <code>f</code> as handler to all the possible signals. </p>
  
  <p>I have two problems:</p>
  
  <ol>
  <li>How can a get all the possible signals? Is there a function for this? Can I iterate through them in some way?</li>
  <li>Will it really work to set the function <code>f</code> as handler given that it takes a parameter? Shouldn't it not have any parameters?</li>
  </ol>
  
  <p>Thank you.</p>