Hypersonic - auto-generated code bug in C

I think there should be “fgetc(stdin);” after “fgets(row, width+1, stdin);”. Otherwise “fprintf” gets crazy prints some garbage.
Or use “scanf(”%s",row);" instead.

1 Like

Thank you! I was getting crazy about the “fprintf”, you saved my code.

I just increased the row length and adjust the fgets call accordingly.
I’ve lost many hours because of this…