Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Linux in General => Linux Development & Programming => Topic started by: power on November 01, 2005, 08:35:26 AM

Title: fflush and fsync??
Post by: power on November 01, 2005, 08:35:26 AM
Hello....

I want to ask a C programming question on Linux...

fflush and fsync both said to be putting the data in buffers to devices. But what is the differences between them??

In fact, I want to force my data in buffers (after calling fwrite) to be put to the harddisk, what functions should I call??

Thank you.

Danny.