| 148 | nullcThrowError("Failed to write to a file."); |
| 149 | } |
| 150 | void FilePrint(NULLCArray arr, File* file) |
| 151 | { |
| 152 | if(!file->handle) |
| 153 | { |
| 154 | nullcThrowError("Cannot write to a closed file."); |
| 155 | return; |
| 156 | } |
| 157 | unsigned int length = (unsigned int)strlen(arr.ptr); |
| 158 | if(length != fwrite(arr.ptr, 1, length, file->handle)) |
| 159 | nullcThrowError("Failed to write to a file."); |
| 160 | } |
| 161 | void FileSeek(int dir, int shift, File* file) |
| 162 | { |
| 163 | if(!file->handle) |
nothing calls this directly
no test coverage detected