A runtime error occures in my programm, during the execation, it gives
"bus error", when I use dbx to step through, the dbx msg is:
"signal bus(alignment error) in devimal_to_double at 0xf76f7e3c
decimal_to_double +0x28c: st %l2,[%i0]"
The program looks like this:
double fbuf[2],ang[3];
...
main(){
....
data();
...
void data(void)Quote:}
{
......
fscanf(infile,"%lf %lf %lf \n",&fbuf[0],&fbuf[1],&ang[1]);
....
before that fscanf, I have used lots of fscanf to input double valuedQuote:}
arrays,
the program dies on this fscanf();
did anybody can explain what happened ?
Thanks,