1
0
mirror of https://github.com/kspalaiologos/bzip3.git synced 2026-10-23 14:48:53 +03:00
Files
bzip3/examples
Kamila Szewczyk 28f2f1d1c2 remove the example code from the repository.
considering that many issues were reported with lack of robustness of the example code, I have decided to remove it. while it was meant to initially be a demonstration of the bzip3 APIs, i do not want to turn it into a demonstration of how to use the C standard library. to guard the code against all sorts of errors (I/O, allocation) we would need to essentially triple the size of the example code for no reason in particular. one needs to check all I/O operations - fopen, fflush, fread, fwrite, fseek. you need to check malloc return values, need to check file headers, need to sync files using UNIX apis. then a handler for each case to display an error message and `exit`. as such, when the size of the "example" will grow 3 times and become just useless stuff completely irrelevant to someone who's using the library, it will stop serving its purpose.
the example code was not a part of the library, but to stop it from drawing so much attention, it has been removed.
2023-03-27 15:14:51 +02:00
..
2023-03-19 14:53:59 +01:00
2022-10-23 12:47:18 +02:00
2022-10-23 12:47:18 +02:00