The getchar() Of Today Is:
the diet libc! as in most libc implementations, getchar() is simply a macro for fgetc(stdin), which in turn invokes fgetc_unlocked(stdin) in a threadsafe way
notice the use of the __likely and __unlikely macros - these provide branch prediction hints to the compiler. under gcc they expand to the __builtin_expect hint. clever!










