I\'ve written a program that reads an whole file via fgetc:
fgetc
while ((c = fgetc(f)) != EOF) { ... }
But the program is too slow. Whe
With fgetc you not only get more function calls (each one has its overhead), but fgetc may also takes locks in multi-threaded application (this is mandated for instance by POSIX).