Question: how to implement iir filter in c?
Answer: Use a function to implement each biquad, such as the example C biquad function or a biquad function supplied with a DSP library. Export biquad coefficients from your IIR design program in the format required by the biquad function you use. Implement the overall IIR filter by cascading biquads.