Partially undo 5bbdf55 (1994/schnitzi)

The problem with changing it to use fgets() is feeding the program
itself generates compiler errors and the generated file does not use
fgets() either. This will have to be done another time, maybe. The
buffer size was increased to 10000 and even this required some slight
changes in formatting in order for the generated output to compile okay.
The buffer size generated is still the same as the original but now
larger files can be parsed by the original code and everything compiles
okay again.
This commit is contained in:
Cody Boone Ferguson committed 2023-04-01 10:42:14 -07:00
1 parent 3a1fb9ff7d
commit f3d6dc7202
2 files changed
+13 -9

No files matched your search

+4 -4
View File
@@ -20,12 +20,12 @@ h mh111 de{l) +di (+'( d+% c n+
*/ n = 0 ;
main ( ) {
char v [
1000 ] , s;
int t[100 ] ,
u[100 ] ; u
10000 ] , s;
int t[100 ] ,
u[100 ] ; u
[ 0
]=ftell(stdin ) ;
while(fgets(v,100,stdin )&&((v[strlen(v)-1]='\0',1)) )
while(gets (v ) )
{t [ r ]=
strlen (
v);y=