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

Function FileCreate

NULLC/includes/file.cpp:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 return ret;
27 }
28 File FileCreate(NULLCArray name, NULLCArray access)
29 {
30 File ret;
31 ret.flag = FILE_OPENED;
32 ret.handle = fopen(name.ptr, access.ptr);
33 if(!ret.handle)
34 nullcThrowError("Cannot open file.");
35 return ret;
36 }
37 void FileOpen(NULLCArray name, NULLCArray access, File* file)
38 {
39 if(file->flag & FILE_OPENED)

Callers

nothing calls this directly

Calls 1

nullcThrowErrorFunction · 0.50

Tested by

no test coverage detected