top of page
Blog

Never Use gets To Read A Line
gets is a deprecated function which can cause buffer overflows, use fgets insted.
Damiano Pe
Oct 23, 2021
19 views

How To Remove Trailing Newline Character From fgets Input
Let's say we have to process a text file line by line, and we have to make sure that the line we are processing does not end with a newline
Damiano Pe
Oct 23, 2021
38 views
bottom of page