Simple trap handler example.

Description | Download | Table of Contents | Modules | Compound List | File List | Functions


Overview
Compiler
Documentation
Examples
Misc
Help
IDE & Tools

Download
Install

Links
Projects






The trap example illustrates how to define a trap handler (swi handler) and how to invoke the handler. The trap handlers are defined by using the GNU extension __attribute__.

trap.h
Definition of trap handlers.

trap.c
Implementation of the trap handlers.

trap-main.c
Main that installs and invokes the trap handlers.

Source file: trap-main.c

Description | Download | Table of Contents | Modules | Compound List | File List | Functions

    Last modified,
    Apr 16, 2001
[ Copying ]     [ Feedback to Stephane.Carrez@worldnet.fr ]