Re: lseek: Value too large for defined data type



On Jul 24, 11:29 pm, guru <guru.nav...@xxxxxxxxx> wrote:

But if I dont include this header file, it should give warning?.

If you turn the appropriate warning on.

and
How, including of this header file affecting the return value of
lseek.

It tells the compiler what type 'lseek' returns. With the wrong type,
it could be looking in the wrong place completely (the register
instead of the stack, the wrong register, and so on) so it's not
surprising you get garbage.

DS

.