Back to index

glibc  2.9
test-matherr.c
Go to the documentation of this file.
00001 #undef _SVID_SOURCE
00002 #define _SVID_SOURCE
00003 #include <math.h>
00004 #include <stdio.h>
00005 #include <stdlib.h>
00006 
00007 static int fail = 1;
00008 
00009 int
00010 matherr (struct exception *s)
00011 {
00012   printf ("matherr is working\n");
00013   fail = 0;
00014   return 1;
00015 }
00016 
00017 int
00018 main (void)
00019 {
00020   _LIB_VERSION = _SVID_;
00021   acos (2.0);
00022   return fail;
00023 }