top of page
Blog
Damiano Pe
Oct 23, 2021
Never Use gets To Read A Line
gets is a deprecated function which can cause buffer overflows, use fgets insted.
19 views
Damiano Pe
Oct 23, 2021
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
27 views
bottom of page