On Thu, 2005-03-17 at 13:48 -0800, Max wrote: > Dave, > > Shouldn't "fread(&data,sizeof(data),1,f)" and "read(fn, &data, > sizeof(data))" produce identical results? > Is it a bug or what?
fseek(f, offset, SEEK_SET); fread(&data, sizeof(data, 1, f); should produce identical results to lseek(fn, offset, SEEK_SET); read(fn, &data, sizeof(data); However lseek(fn, offset, SEEK_SET); fread(&data, sizeof(data, 1, f); isn't valid. -- David Kleikamp IBM Linux Technology Center - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
