Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

test.c

Go to the documentation of this file.
00001 #include <stdio.h>
00002 #include <math.h>
00003 #include <signal.h>
00004 
00005 void mysig(int i)
00006 {
00007     fprintf(stderr, "i = %d\n", i);
00008     exit(42);
00009 }
00010 
00011 void silly(float x, float* y)
00012 {
00013     fprintf(stderr, "about to do something silly...\n");
00014     *y = 1/x;
00015 }
00016 
00017 main()
00018 {
00019     float y;
00020     /* signal(SIGFPE, mysig); */
00021     silly(0.0, &y);
00022     fprintf(stderr, "y = %f\n", y);
00023 }

Generated at Sun Feb 24 09:57:18 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001