home *** CD-ROM | disk | FTP | other *** search
- /* then search for the signature */
- if (buffer[i] == signature[state])
- {
- ++state;
- if (signature[state] == 0)
- {
- ++i; /* point to crc position */
- crc_location += i;
- ++i; /* skip over crc position */
- ++ finds; /* increment # of times found */
- state = 0; /* restart signature search */
- }
- }
- else
- state = 0;
-
- }
- if (finds == 0)
- crc_location += (long)num_bytes;