| 26 | |
| 27 | #include <fcntl.h> |
| 28 | int ftruncate(int fd, i64 length) { |
| 29 | return _chsize_s(fd, length); |
| 30 | } |
| 31 | int truncate(const char* name, i64 length) { |
| 32 | int fd = ::_open(name, _O_WRONLY); |
| 33 | int ret = ftruncate(fd, length); |
no outgoing calls
no test coverage detected