On Mon, Mar 13, 2023 at 6:15 PM Dave Horsfall <dave(a)horsfall.org> wrote:
On Mon, 13 Mar 2023, Dan Cross wrote:
Hey, they dropped `gets` from the standard
library! Never say never.
When did that finally happen? Last I looked, gets() was still part of
POSIX, and hence couldn't be dropped...
It was (finally!!) dropped from ISO C in C11.
It's a shame POSIX is keeping it around, but it appears you're right:
https://pubs.opengroup.org/onlinepubs/9699919799/
In fairness, this does say it may be removed from a later standard.
- Dan C.
Trivia: I think it was OpenBSD that nobbled gets() to
print a warning
whenever it was invoked :-)
-- Dave