]> www.ljiriste.work Git - FET_sim.git/commit
Fix saving
authorLukáš Jiřiště <redacted>
Wed, 9 Sep 2026 19:38:49 +0000 (21:38 +0200)
committerLukáš Jiřiště <redacted>
Wed, 9 Sep 2026 19:38:49 +0000 (21:38 +0200)
commit6b7a4d25bd636191602b154586b58d81137d32eb
treeffe9eb43127298f64f04a1683da63b6f9c451854
parent1b3d10779bd8b16439c1d653351a16f7312729cc
Fix saving

There were 3 problems:
I forgot about mode when creating a new file.
I did not read docs about write and assumed 0 is returned on success.
I have written the boolean return values in a way I am not happy with.

The first 2 problems are now solved, the second will need a refactor.
src/c_save.c
src/main.c