No problem!
Just put a "void myfunc (int)" as a function pointer in the second place of the fucnction signal.
for example
Code:
void my_sig_handler (int a) {
printf ("Signal TERMINATE has been handled!\n");
}
/*...*/
int main () {
signal (SIGINT, my_sig_handler); /* this line will redirect ctrl+c signal to your function */
return 0;
}