fseek bugged?
#1

Hello guys.. I've been doing some tests with fseek, and I've noticed that no matter what it will always return 0.
According to wiki, it should return the new pos in the file: https://sampwiki.blast.hk/wiki/Fseek

But when I tested it, the start/current/end always returned 0 to me, heres the code I was using:

pawn Код:
new File:h;
h = fopen(file, io_read);
new start = fseek(h, 0, seek_start);
new current = fseek(h, 0, seek_current);
new end = fseek(h, 0, seek_end);
printf("start: %d, current: %d, end: %d", start, current, end);
P.S. the file is not empty!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)