From 04acafba2b1ab23ac2481c54897fc8c07cc9a49d Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Thu, 16 Nov 2023 08:44:23 -0800 Subject: [PATCH] Add a bit to fgets() change details in thanks As the v7 man page used to say: BUGS The fgets(3) function retains the newline while gets(3) does not, all in the name of backward compatibility. ... though I still fail to understand how that is 'compatible' ... --- thanks-for-fixes.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index 7d8c07537..b437c06f6 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -94,6 +94,14 @@ In some entries this change is not possible, in one-liners it might make them too long (though it's also been possible to do it in some cases) and in some entries it's more complicated than others because of the annoying fact that for '"compatibility" reasons' `fgets()` retains the newline and `gets()` does not. +As the v7 man page used to say: + +``` +BUGS + +The fgets(3) function retains the newline while gets(3) does not, all in the +name of backward compatibility. +``` Some entries like [1992/adrian](1992/adrian/README.md) were more complicated in other ways due to the code generating other output and because of how it works