1

is there any difference between using fseeko with fread vs lseek with read if I want to do Hard disk access ?

My program checks for certain patterns on a raw harddisk (/dev/sdX). My program currently uses fseeko and fread.

Platform is linux.

  • 1
    You could just read the man pages... http://man7.org/linux/man-pages/man3/fseeko.3.html – Marc B Feb 10 '14 at 01:08
  • some people here talk about bytes not being read etc... http://stackoverflow.com/questions/9349470/whats-the-difference-between-fseek-lseek-seekg-seekp –  Feb 10 '14 at 01:09
  • 1
    take a look at http://stackoverflow.com/questions/9349470/whats-the-difference-between-fseek-lseek-seekg-seekp and http://stackoverflow.com/questions/8888419/whats-the-difference-between-this-lseek-fseek-read-fread – berkay Feb 10 '14 at 01:39

0 Answers0