rewinds cfile position
| 884 | |
| 885 | // rewinds cfile position |
| 886 | void 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 |
no outgoing calls