Portál AbcLinuxu, 10. května 2025 02:35
Upon successful completion, lseek() returns the resulting offset location as measured in bytes from the beginning of the file. Otherwise, a value ofTakže(off_t)-1
is returned anderrno
is set to indicate the error.
pos = lseek(fd, 0, SEEK_CUR);
fseek()
to nevadí, protože tam máte ftell()
.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.