MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / WRITE_FILE_ENTRY

Function WRITE_FILE_ENTRY

legacy/hogmaker/hog.cpp:121–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121inline bool WRITE_FILE_ENTRY(FILE *fp, tHogFileEntry *entry) {
122 int res = 0;
123 res = fwrite(entry->name, strlen(entry->name), 1, fp);
124 res = fwrite(&entry->flags, sizeof(entry->flags), 1, fp);
125 res = fwrite(&entry->len, sizeof(entry->len), 1, fp);
126 res = fwrite(&entry->timestamp, sizeof(entry->timestamp), 1, fp);
127
128 if (res)
129 return true;
130 else
131 return false;
132}
133
134////////////////////////////////////////////////////////////////////////
135// create new hog file

Callers 2

NewHogFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected