readerp: implement file expansion#844
Conversation
|
A few comments from Claude AI, your thoughts?
|
and return the number of files from which data is read.
0edd507 to
25c2aae
Compare
Have adopted this, changing the return value to be the number of files from which data is read, so even reading an empty file would flag an issue.
Suggest keeping all the data read even if there is some issue, but it now only returns the count of files from which data is read so that if there is a file that can be opened but it fails to read the data from then that can flag an error. Have not added a warning output for each file that has not data read, but could trivially do that too.
Can live with this. Once consider adopting a string library with memory management but gave up - this is C and it uses static memory allocation and it seems simplest this way. A higher level language would manage string allocation automatically. |
Just a convenience.