Mail Archives: djgpp/1998/04/27/15:03:01
Daniel Delorme wrote:
> Put each function in a different file and compile them as a project
> (I use RHIDE) and you'll get SIGFPE except if you run the program from
> the RHIDE editor under win95. But if you do that, although it won't
> crash, the output will be wrong.
runs fine for me...
first file:
#include "stdio.h"
double ReturnDouble(int I);
main()
{
int I;
double D;
for (I=1; I<20; I++)
{
D = ReturnDouble(I);
printf(" %f\n", D);
}
}
second file
#include "stdio.h"
double ReturnDouble(int I)
{
printf("%d\n", I);
return(I*2);
}
nice output too.
- Raw text -