I was reading this article
Need help with altering info on a txt file
about using fgets and scanf to read output, and suggests using fgets with stdin as an argument stating that stdin takes input from the keyboard by default.
How would you change this default behaviour to read input from a microcontroller UART, for example ?
Is this something in the C code, or should I be looking more toward the microcontroller specification?