#include <signal.h>#include "mathlink.h"void s(int signum){ /* ... */}/* remove a SIGHUP signal-handling function from a MathLink environment */void f(MLENV ep){ int err; err = MLUnsetSignalHandler(ep, SIGHUP, (void *)s); if(error MLEOK) { /* unable to remove the function from MathLink's signal-handler mechanism */ }}