We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
gets is deprecated for security reasons, because it can't protect against a buffer overflow. Man page says "Never use this function."
fgets is recommended instead.
"Hello World!" in C
You are viewing a single comment's thread. Return to all comments →
gets
is deprecated for security reasons, because it can't protect against a buffer overflow. Man page says "Never use this function."fgets
is recommended instead.So I used: