On Friday, 29 November 2013 at 00:40:29 UTC, Adam D. Ruppe wrote:
On Friday, 29 November 2013 at 00:35:30 UTC, Binarydepth wrote:
It compiles but in run time terminal shows a segmentation
fault.
works for me without segfaulting. What data did you input?
write(" %d: %d\n", bd, an);
This should be writef instead of write. writef uses the format
string, plain write just literally outputs its arguments.
Right forgot to change that. I'm passing C code to D code and D
code to C code and still make those mistakes.
So weird I get seg fault. which OS are you using ?