delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/09/20/09:41:36

Date: Sun, 20 Sep 1992 15:13:21 +0200
From: Dirk Zabel <dzabel AT cs DOT tu-berlin DOT de>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: oops - sqrt

Sorry, I forgot to append the typescript documenting
the sqrt-problem:
c:>type test.c
/*
 *
 *  testing square root in emu387 / djgpp 1.08
 *
 */

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

int main(argc, argv)
int argc;
char ** argv;
{
  printf("sqrt(2.0)=%f\n", sqrt(2.0));
}
c:>test
Segmentation violation in pointer 0x00000004 at 40:b0003264
Exception 14 at eip=b0003264

--      Dirk


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019