Menu

#8 -f and -r switches does not work for -int and -pos

open
Niclas
5
2007-01-23
2007-01-21
No

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.

Discussion

  • Niclas

    Niclas - 2007-01-23
    • assigned_to: nobody --> arwica
     
  • Niclas

    Niclas - 2007-01-23

    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?

     
  • Johan Garcia

    Johan Garcia - 2007-01-23

    Logged In: YES
    user_id=1645190
    Originator: YES

    The short-by-short approach should be fine.

     

Log in to post a comment.