]> Kevux Git Server - fll/commit
Update: Remove the "amount" from file stream functions.
authorKevin Day <thekevinday@gmail.com>
Sun, 2 May 2021 05:12:42 +0000 (00:12 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 2 May 2021 05:15:29 +0000 (00:15 -0500)
commit06d70fc4c0402167d02764413d96a49bf1df1f1a
tree466a6534a7828fe80b45fb2cf94de49db1792b5f
parent71965dbe151275f64ab80abf18a51b4a85eefb72
Update: Remove the "amount" from file stream functions.

The "amount" is present to support the parameters that fread() and fwrite() utilize.
This makes no sense to me and it is annoying and confusing.
I end up having to just put 1.

Get rid of it and just use the file.size_read and file.size_write to specify the buffer size to read/write.

The only things that I can thing of might be atomic operations, locking, and calling the function multiple times.
These are good reasons to have an "amount".

If I end up wanting o needing an "amount", I may add additional functions later on.
level_0/f_file/c/file.c
level_0/f_file/c/file.h
level_0/f_file/c/private-file.c
level_0/f_file/c/private-file.h
level_3/controller/c/private-controller.c
level_3/controller/c/private-rule.h
level_3/fss_basic_read/c/fss_basic_read.c