[TUHS] : C dialects (was: I can't drive 55: "GOTO considered harmful" 55th anniversary)
Dan Cross
crossd at gmail.com
Tue Mar 14 10:21:07 AEST 2023
On Mon, Mar 13, 2023 at 6:15 PM Dave Horsfall <dave at 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
More information about the TUHS
mailing list