C+signals

Stratos Goudelis devnull at delta.edu.gr
Thu Oct 28 16:29:41 EEST 1999


Ean thumame kala einai :
#include <signal.h>

signal(SIGINT, function);

opou SIGINT einai to Ctrl+C


On Thu, 28 Oct 1999, Kosmidhs Harris wrote:

> Mia erothsh.
> Exo ena programmataki pou kanei POLLA loops allazontas enan pinaka.
> Epeidh den teleionei (h bariemai na perimeno) to skotono me Control-C.
> 
> Pos mporo na kano trap to Control-C oste anti na kanei exit kateu8eian
> na grafei ton pinaka se ena arxeio? (dhaldh na ektelei mia function).
> 
> 8umamai oti ginete sigoura alla edo pou briskomai den exo kanena sxetiko
> me C biblio. An uparxei kai kanena URL akoma kalutera.
> 
> Thanks
> Harris
> --
> ====================================================================
> Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
> Ta archives tis listas einai sto http://lists.hellug.gr/archives
> prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
> Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
> ====================================================================
> 

--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list