Improve my fix to 1993/schnitzi

Redefined gets() so that the code can refer to gets() not fgets(). That
change was useful (as noted before) for preventing an annoying warning
being interspersed with the output and warnings at compiler and/or
linking.
This commit is contained in:
Cody Boone Ferguson committed 2023-09-11 06:11:11 -07:00
1 parent e68f6678e2
commit 8aad81aaeb
2 files changed
+4 -2

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define gets(x) fgets((x), 111, stdin)
#define iii\
( I ) if ( ii(I,6\
) )I [ strlen(I ) -1]=!1
@@ -30,6 +30,6 @@
) printf ( " %s",li1[l1l++] ) ;puts
( "." ) ;}}else{sprintf ( il1,"cat %s;echo",lll[1]
) ;system ( il1 ) ;}printf
( "\n? " ) ; fgets ( il1, 111 , stdin
( "\n? " ) ; gets ( il1
) ;sprintf ( i1l,"%s %s %s",lll[!1 ] ,lll[1],il1);system
( i1l); }