The error checks of all unsafe libc functions live inside their corresponding unsafe block. However, they are actually not unsafe.
Therefore, it might be a good idea to move them out of the unsafe blocks to minimize the usage of unsafe as much as possible.
The error checks of all unsafe
libcfunctions live inside their correspondingunsafeblock. However, they are actually not unsafe.Therefore, it might be a good idea to move them out of the unsafe blocks to minimize the usage of
unsafeas much as possible.