I am working on a code written by someone else. The function I am currently looking at has a segfault in it somewhere, but that's all I have to go on. I wonder if this line could be the problem
Seems fine, except that N is declared as a double. Will modf cause a segfault if the second parameter is not an int? Or will it just cast the int into a double and store it that way?Code:modf( (it*dt-prev_output_time)/tout, &N);