CE-Programming / toolchain

Toolchain and libraries for C/C++ programming on the TI-84+ CE calculator series
https://ce-programming.github.io/toolchain/index.html
GNU Lesser General Public License v3.0
527 stars 53 forks source link

`ti_Resize` function that preserves file contents #491

Open runer112 opened 4 months ago

runer112 commented 4 months ago

I would expect ti_Resize to add/remove bytes at the current offset, or maybe at the end, but it instead appears to do so at the start of the file.

mateoconlechuga commented 3 months ago

ti_Resize was never intended to preserve file contents.

adriweb commented 3 months ago

Since we can't modify the function's behavior now anyway, the consensus on Discord was to create a new function that does this, if needed.

mateoconlechuga commented 1 month ago

Documentation added in 06c34a0d7e21551e482dff19c6ea8bcf02abb758 to note that this function doesn't preserve file contents