On Wed, Oct 09, 2024 at 05:13:53PM +0800, Dehan Meng wrote:
> Key changes:
> 1. Proper initialization of n to 0 for getline to function correctly.
> 2. Avoiding freeing line prematurely. It's now only freed at the end of the
> function.
> 3. sscanf return values are checked to ensure correct parsi
Key changes:
1. Proper initialization of n to 0 for getline to function correctly.
2. Avoiding freeing line prematurely. It's now only freed at the end of the
function.
3. sscanf return values are checked to ensure correct parsing.
4. Variable declarations moved to the beginning of blocks.
5. Foll