Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Remove Trailing Newline Character From fgets() Input | C Programming Example

15.3K views on YouTube

Remove the trailing newline character in string input from the user received using fgets() in C, including a visualization of what is happening to help understand why the code works. Source code: https://github.com/portfoliocourses/c-example-code/blob/main/remove_fgets_trailing_newline.c. Check out https://www.portfoliocourses.com to build a portfolio that will impress employers!