The -f and -r switches are currently outcommented in main. They should be incommented and the corresponding functions modified so they work.
The fread in read_rawfile should be modified from
fread((void *)upatt,1, 1, file);
to also take patternsize into account.
This would be similar to the way read_textfile uses
statinfo.st_size in its fread.
Possibly some more modifications are needed.
Logged In: YES
user_id=1656160
Originator: NO
Fixed -f (textfile) switch. Regarding the raw files, should they be loaded into an array? Or should the function be rewritten to support the short-by-short approach used almost everywhere else?
Logged In: YES
user_id=1645190
Originator: YES
The short-by-short approach should be fine.