Click here to Skip to main content
15,892,298 members

Comments by merano99 (Top 200 by date)

merano99 5 days ago View    
The comments that fgets() requires the specification of the maximum buffer size and not the length of an uninitialized string are correct, but do not answer the question of why the result is 4 and not 3 when entering "abc".
merano99 5 days ago View    
Exactly. I would also like to add that the missing end of the string becomes a problem for all entries with 100 or more characters. In addition, one could also think about what should happen with the rest of the line.
merano99 16-Apr-24 3:49am View    
Thanks for the hint, since the previous solution was fresh I had probably overlooked the date of the question. I'll delete the solution so as not to confuse others.

merano99 10-Apr-24 16:07pm View    
Undeclared functions and identifiers: displayDescription, levelInfo, transitions, handItem, endGame.
merano99 9-Apr-24 10:33am View    
+5, I also see the problem with insecure data types that are also accessed globally.
Especially with the announcement that it could possibly also be used by other developers with multithreading, I would save the length, copy the data and possibly also make the original data type checkable.