getc() vs fgetc() - What are the major differences?
问题 Everywhere I see "it is practically identical", or something similar... From The GNU C Programming Tutorial : There is another function in the GNU C Library called fgetc. It is identical to getc in most respects, except that getc is usually implemented as a macro function and is highly optimised, so is preferable in most situations. (In situations where you are reading from standard input, getc is about as fast as fgetc, since humans type slowly compared to how fast computers can read their