Get the current state of all signals:
      
    Clear the CTRL-C signal:
      
        
        SetSignal(0L, SIGBREAKF_CTRL_C);
        
       
    Check if the CTRL-C signal was pressed:
      
        
        #include 
dos/dos.h
        /* Check & clear CTRL_C signal */
        if (SetSignal(0L, SIGBREAKF_CTRL_C) & SIGBREAKF_CTRL_C)
          
            
            printf("CTRL-C pressed!\n");