Subject: Update: SIGILL in perl(1) / modf(3)
To: None <port-vax@netbsd.org>
From: None <jkunz@unixag-kl.fh-kl.de>
List: port-vax
Date: 06/10/2001 20:08:21
Hi.

I wrote this to reproduce the SIGILL. The SIGILL seems not to depend on
the value of the argument.

#include <stdio.h>
#include <stdlib.h>
#include <math.h>


int
main( int argc, char** argv) {
	double	f;

	if ( argc < 2 ) {
		printf( "Give float as argv[1]\n");
		exit( 1);
	}
	f = atof( argv[1]);
	printf( "f=%f\n", f);
	(void) modf( f, &f);
	printf( "f=%f\n", f);
	exit( 0);
}
-- 



tschüß,
         Jochen

Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/