I'm not quite sure if this is a stupid question, but I think I will find out soon.
I'm having trouble understanding how getcand work getwc. It’s not that I cannot use them, but it seems more like I don’t know exactly what they are doing. intand getcreturn most characters if I printf them ("% c"), including multibyte characters like € or even £.
My question is: how exactly do these functions work, how do they read stdin exactly ? Explanations and good pointers to documents are greatly appreciated.
Change . Please read the comment I left in William's answer. This helps clarify the level of detail that I am after.
source
share