clearing c buffer

when using scanf, how do i clear the input buffer without using fflush?? im using it in linux and some ways in the internet causes segmentation fault.

Thanks!!
Topic archived. No new replies allowed.