MCPcopy Create free account
hub / github.com/WheretIB/nullc / FilePrint

Function FilePrint

NULLC/includes/file.cpp:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

nullcThrowErrorFunction · 0.50

Tested by

no test coverage detected