title: Are fscanf and fprintf buffered in C?
body: <p>I wish to write an efficient C program, that makes a copy of a file. There doesn't seem to be a function (such as <a href="http://www.gnu.org/software/libc/manual/html_node/Renaming-Files.html" rel="nofollow">rename</a>) that performs this. I plan to use <a href="http://www.tutorialspoint.com/c_standard_library/c_function_fscanf.htm" rel="nofollow">fscanf</a> an <a href="http://pubs.opengroup.org/onlinepubs/009695399/functions/fprintf.html" rel="nofollow">fprintf</a> in stdio.h, but their descriptions do not say how or if they are buffered. Are they buffered between different cache levels? (I assume disk to memory buffer is handled by the OS)</p>