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

Function cf_Rewind

cfile/cfile.cpp:886–894  ·  view source on GitHub ↗

rewinds cfile position

Source from the content-addressed store, hash-verified

884
885// rewinds cfile position
886void cf_Rewind(CFILE *fp) {
887 if (fp->lib_offset) {
888 int r = fseek(fp->file, fp->lib_offset, SEEK_SET);
889 ASSERT(r == 0);
890 } else {
891 rewind(fp->file);
892 }
893 fp->position = 0;
894}
895
896// Calculates a 32-bit CRC for the specified file. a return code of -1 means file note found
897#define CRC32_POLYNOMIAL 0xEDB88320L

Callers 2

TESTFunction · 0.85
PPic_BuildDatabasesFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68