This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
hilbert-os/euler/source/io/fread.cpp

9 lines
178 B
C++

#include <cstdio>
namespace std {
size_t fread(void *buffer, size_t size, size_t count, FILE *stream) {
return stream->try_read(buffer, size * count) ? count : 0;
}
}