python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
C POSIX function lseek returns -1 but errno is not set
I have encountered a situation where after calling lseek, I would get -1 as a return value but errno would remain unset.
From what I understand by reading the documentation for lseek, -1 return value ...

Long Claw
Votes: 0
Answers: 0
Why does fseek have "long int offset" instead of "long long int offset"?
C2x, 7.21.9.2 The fseek function:
Synopsis
#include <stdio.h>
int fseek(FILE *stream, long int offset, int whence);
Why does fseek have long int offset instead of long long int offset?
It see...
pmor
Votes: 0
Answers: 1
Detect when `fseek()` goes beyond end of file
In <stdio.h>, the function fseek() seems allowed to skip way beyond the end of its file handler, without producing any error code.
While I can understand the behavior when the FILE* handler is s...
Cyan
Votes: 0
Answers: 1