Slight improvement to my fix of 1992/adrian

Originally there was one call to gets() and one call to fgets(). The
gets() was changed to the fgets() to prevent warnings including (in
macOS) warnings interspersed with output of the program.

But to make it more like the original gets() has been redefined to use
fgets(). However this does not mean that we can make the macro do a &&
... to strip off the newline as doing this will make a different file
fail to generate properly (I might look at that later as it would be
nicer if it looked exactly like before). Thus the 'Y[strlen(Y)-1]='\0';'
is still there in the body of the while loop at least for now.

The README.md was updated to remove the address - just have name and
country.

Updated thanks-for-fixes.md for the above change as well as some typo
fixes elsewhere.
This commit is contained in:
Cody Boone Ferguson committed 2023-09-10 06:25:44 -07:00
1 parent 327c91d4c3
commit 2173be58f2
3 files changed
+44 -28

No files matched your search

+2 -1
View File
@@ -5,6 +5,7 @@
#define G 17
#define z 8
#define v(jr) jr
#define gets(Y) fgets((Y),998,stdin)
int W ,head;
#define S(W,b,f) strncpy(W,b,f),W[f]=0\
@@ -104,7 +105,7 @@ while( s = strtok(0,wcs)) {
< 10 && printf((W,Y)); }
if(j+28) { {
; } printf("%7u%7u%7u\n", wcl , wcw , wcc); }
while( fgets(Y,998,stdin) ){ Y[strlen(Y)-1]='\0'; if(A(Y)) puts(Y); }
while( gets(Y) ){ Y[strlen(Y)-1]='\0'; if(A(Y)) puts(Y); }
W, jr; }
O(int wc,char**V) {