Note that this functions' behavior differs from fread in case of EOF.
When you read the last chunk (mean the last bytes from file), it is EOF just after gzread, but in case of fread you need to read once more to get EOF.
Hope, I am clear :)
Note that this functions' behavior differs from fread in case of EOF.
When you read the last chunk (mean the last bytes from file), it is EOF just after gzread, but in case of fread you need to read once more to get EOF.
Hope, I am clear :)