| 138 | nullcThrowError("Failed to read from a file."); |
| 139 | } |
| 140 | void FileWrite(NULLCArray arr, File* file) |
| 141 | { |
| 142 | if(!file->handle) |
| 143 | { |
| 144 | nullcThrowError("Cannot write to a closed file."); |
| 145 | return; |
| 146 | } |
| 147 | if(arr.len != fwrite(arr.ptr, 1, arr.len, file->handle)) |
| 148 | nullcThrowError("Failed to write to a file."); |
| 149 | } |
| 150 | void FilePrint(NULLCArray arr, File* file) |
| 151 | { |
| 152 | if(!file->handle) |
nothing calls this directly
no test coverage detected