Thread
:
fseek() and read() problem
View Single Post
#
8
(View Single Post)
14th April 2009
BSDfan666
Real Name: N/A, this is the interweb.
Banned
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
One would typically use
fread(3)
instead of
read(2)
when using
fseek(3)
.
In fact, you should probably use
fseeko(3)
and
ftello(3)
as well.. the other functions do not handle 64-bit file offsets.
BSDfan666
View Public Profile
Find all posts by BSDfan666